glm Questions

1

I am currenlty computing glm models off a huge data data set. Both glm and even speedglm take days to compute. I currently have around 3M observations and altogether 400 variables, only some of wh...
Termination asked 2/11, 2017 at 16:37

4

Solved

I am using the twang package to create propensity scores, which are used as weights in a binomial glm using survey::svyglm. The code looks something like this: pscore <- ps(ppci ~ var1+var2+......
Cephalometer asked 18/10, 2012 at 10:57

1

Solved

I want to pass weights to glm() via a function without having to use the eval(substitute()) or do.call() methods, but using rlang. This describes a more complicated underlying function. # Toy dat...
Bonin asked 26/1, 2019 at 22:30

1

Solved

I would like to calculate Wald confidence intervals of the coefficients of a glm on a somewhat large data set, and use broom for a tidy output. mydata <- data.frame(y = rbinom(1e5,1,0.8), x1 ...
Plantation asked 31/10, 2018 at 20:34

1

Solved

I want to explan Type_f with Type_space of the experiment and the rate of Exhaustion_product and quantitative variable Age. Here is my data : res=structure(list(Type_space = structure(c(2L, 2L, 2...
Perlis asked 18/9, 2018 at 7:45

2

Solved

I would like to understand the meaning of the value (result) of h2o.predict() function from H2o R-package. I realized that in some cases when the predict column is 1, the p1 column has a lower valu...
Abaft asked 12/9, 2018 at 23:21

2

Solved

Trying to fit BLR model to each column in data frame, and then predict on new data pts. Have a lot of columns, so cannot identify the columns by name, only column number. Having reviewed the severa...
Samarskite asked 11/8, 2018 at 3:53

1

Solved

I want to do a regression in R using glm, but is there a way to do it since I get the contrasts error. mydf <- data.frame(Group=c(1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12), WL=rep...
Gluten asked 11/5, 2018 at 17:20

1

Solved

I have a logistic regression model in R, where all of the predictor variables are categorical rather than continuous (in addition to the response variable, which is also obviously categorical/binar...
Degenerate asked 18/7, 2018 at 18:40

2

Solved

I have data as below: numbers <- structure(list(density = c(1L, 4L, 10L, 22L, 55L, 121L, 210L, 444L), females = c(1L, 3L, 7L, 18L, 22L, 41L, 52L, 79L), males = c(0L, 1L, 3L, 4L, 33L, 80L, 158...
Tactual asked 29/3, 2016 at 13:58

4

Solved

When I use the following R code, model_glm=glm(V1~. , data=xx,family="binomial"); save(file="modelfile",model_glm); The size of modelfile will be as much as the data, which will be 1gig in my ca...
Partizan asked 14/11, 2012 at 21:26

3

Solved

When I train just using glm, everything works, and I don't even come close to exhausting memory. But when I run train(..., method='glm'), I run out of memory. Is this because train is storing a lo...
Verecund asked 1/7, 2011 at 5:38

1

Solved

When we use a traditional logistic regression and make a prediction in R, for example: library(dplyr) n = 300 xx<-c("r1","r2","r3","r4","r5") xxx<-c("e1","e2","e3") p=0.3 df1 <- data_fram...
Retiring asked 26/1, 2018 at 13:7

1

I am comparing GLM output from R and SAS of a model with a Gamma distribution. The point estimations are identical, but they have different estimation of the standard error and therefore different ...
Misdeed asked 15/6, 2017 at 22:28

6

Solved

Suppose I have a response variable and a data containing three covariates (as a toy example): y = c(1,4,6) d = data.frame(x1 = c(4,-1,3), x2 = c(3,9,8), x3 = c(4,-4,-2)) I want to fit a linear r...
Libyan asked 9/3, 2011 at 20:5

2

Solved

In glm in R, the default link functions for the Gamma family are inverse,identity and log. Now for my particular question, I need to use gamma regression with response Y and a modified link functio...
Ellipsoid asked 10/4, 2013 at 16:28

2

Intro I'm trying to construct a GLM that models the quantity (mass) of eggs the specimens of a fish population lays depending on its size and age. Thus, the variables are: eggW: the total mass...
Cuspidate asked 21/6, 2017 at 10:1

1

Solved

I am going to fit the model on the data provided in this excellent example on how to compute the 95% confidence interval for the response, after performing a logistic regression: foo <- mtcars[...
Warmhearted asked 14/6, 2017 at 3:23

1

Solved

I am trying to use speedglm to achieve a faster GLM estimation than glm, but why it is even slower? set.seed(0) n=1e3 p=1e3 x=matrix(runif(n*p),nrow=n) y=sample(0:1,n,replace = T) ptm <- proc....
Discomposure asked 26/5, 2017 at 18:21

1

I am trying to build a classification model using method = "glm" in train. When I use method = "rpart" it works fine but when I switch to method = "glm" then it gives me an error saying The tun...
Terryl asked 15/5, 2017 at 2:38

1

Solved

I have a dataset, which I am splitting into train and test subsets in the following way: train_ind <- sample(seq_len(nrow(dataset)), size=(2/3)*nrow(dataset)) train <- dataset[train_ind] tes...
Jolda asked 14/5, 2017 at 11:13

1

Solved

I'm trying to run a GLM in R for biomass data (reductive biomass and ratio of reproductive biomass to vegetative biomass) as a function of habitat type ("hab"), year data was collected ("year"), an...
Lylalyle asked 25/4, 2017 at 15:41

0

I am trying to adapt the glm method from caret::train to be used for a Generalized Linear Mixed Effects Model. I have used the following code to set-up the function: `GLMERmod <- list(type="Cla...
Massachusetts asked 15/4, 2017 at 7:29

2

Solved

I have a regression model with binary outcome. I fitted the model with glmnet and got the selected variables and their coefficients. Since glmnet doesn't calculate variable importance, I would lik...
Brothers asked 17/10, 2012 at 15:1

1

I would like to fit multiple curves at once, and compare them statistically, in terms of their 3 estimated parameters – asymptote, slope and x0. Here is an idealized image of the data to be modele...
Ginger asked 3/2, 2017 at 1:26

© 2022 - 2025 — McMap. All rights reserved.