It is impossible for anyone to give you a useful answer without a ***self-contained reproducible*** example.
BTW you are ***NOT*** using "lrm library" --- you are using the rms ***package***; lrm() is a function from that package. cheers, Rolf Turner On 28/05/12 05:53, irena wrote:
Hi, I am running a logistic regression model using lrm library and I get the following error when I run the command: mod1<- lrm(death ~ factor(score), x=T, y=T, data = env1) Unable to fit model using “lrm.fit” where score is a numeric variable from 0 to 6. LRM executes fine for the following commands: mod1<- lrm(death ~ score, x=T, y=T, data = env1) mod1<- lrm(death ~ factor(score)+ factor(var1)+factor(var2)+factor(var3)+ factor(var4)+factor(var5)+factor(var6)+ factor(var7), x=T, y=T, data = env1) I do not understand why I get the error. I have tried to use glm and it works perfectly fine. -- View this message in context: http://r.789695.n4.nabble.com/Unable-to-fit-model-using-lrm-fit-tp4631525.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.