search for: ecdb_proc88

Displaying 1 result from an estimated 1 matches for "ecdb_proc88".

2005 Mar 21
1
Remove columns from data-frame
...actors. Many columns-factors have only one level, for example all are "Yes" or all are "No". If I try to do a regression with that, I get an error message, that contrasts can be used only when number of factors is at least 2. > glm(mortality ~ ., family = binomial, data = ecdb_PROC88) Error in "contrasts<-"(`*tmp*`, value = "contr.treatment") : contrasts can be applied only to factors with 2 or more levels Of course, I could not include them in the model formula, but I don't feel like typing 150 descriptive variables. I would like to remove...