[R] error in running glm() function

shrutibansal imsb.bhu at gmail.com
Wed Jul 25 09:28:12 CEST 2012


m1.logit <-lm(default ~ 
                          amt.fac + 
                          age.fac + 
                          duration +
                          chk_acct +
                          history +
                          purpose +
                          sav_acct +
                          employment +
                          install_rate + 
                          pstatus +
                          other_debtor +
                          time_resid +
                          property +
                          other_install + 
                          housing +
                          other_credits +
                          job +
                          num_depend + 
                          telephone + 
                          foreign
                                  , family = binomial(link = "logit"), data
= dev)

on running this code I am getting the following error

Error in `contrasts<-`(`*tmp*`, value = contr.funs[1 + isOF[nn]]) : 
  contrasts can be applied only to factors with 2 or more levels
..
please help me solving this problem



--
View this message in context: http://r.789695.n4.nabble.com/error-in-running-glm-function-tp4637727.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list