search for: factor2ind

Displaying 3 results from an estimated 3 matches for "factor2ind".

2018 Feb 26
2
glm package - Negative binomial regression model - Error
HI there I am running this model in negative binomial regression, using glm. I had no problems with running the model with a set of data, but now that i'm trying to run if for new one. I always have this same error when running the regression: > > #Run Regression > x=cbind(factor2ind(d$year),factor2ind(d$month_week)) > > out<- glm(cbind(influenza, n_sample) ~ x, family=quasibinomial, > data=d) > > d$prop<-out$fitted.values Error in `$<-.data.frame`(`*tmp*`, prop, value = c(0.0486530542835839, : replacement has 208 rows, data has 365 >...
2018 Feb 26
0
glm package - Negative binomial regression model - Error
...model in negative binomial regression, using glm. > I had no problems with running the model with a set of data, but now that > i'm trying to run if for new one. I always have this same error when > running the regression: > > > > > #Run Regression > > x=cbind(factor2ind(d$year),factor2ind(d$month_week)) > > > > out<- glm(cbind(influenza, n_sample) ~ x, family=quasibinomial, > > data=d) > > > > d$prop<-out$fitted.values > > Error in `$<-.data.frame`(`*tmp*`, prop, value = c(0.0486530542835839, : > replaceme...
2009 Jun 25
2
crr - computationally singular
Dear R-help, I'm very sorry to ask 2 questions in a week. I am using the package 'crr' and it does exactly what I need it to when I use the dataset a. However, when I use dataset b I get the following error message: Error in drop(.Call("La_dgesv", a, as.matrix(b), tol, PACKAGE = "base")) : system is computationally singular: reciprocal condition number =