ich muss in meinem glm-Modell (binomial und logit) eine Variable mit berücksichtigen die leider nur Werte im level 1 hat (siehe summary).
Folgendes Auszug zum Verständnis:
Code: Alles auswählen
summary(daten$Eigentuemer)
Privat Kommunal Staat
430 0 0
str(daten$Eigentuemer)
Factor w/ 3 levels "Privat","Kommunal",..: 1 1 1 1 1 1 1 1 1 1 ...
> model<-glm(VVJ~x1
+ +Eigentuemer
+ +x3
+ +x4
+ +x5
+ +x6
+ +x7
+ +x8
+ +x9
+ +x10
+ ,data=daten,
+ family = binomial(link = "logit"))
Code: Alles auswählen
Error in `contrasts<-`(`*tmp*`, value = contr.funs[1 + isOF[nn]]) :
contrasts can be applied only to factors with 2 or more levels
Gruß