[R] lrm error message

From: Angelo Passalacqua <apassala_at_gmail.com>
Date: Tue, 26 Feb 2008 21:40:52 +0000


I'm trying to learn how to use the lrm() function by simulating data using an old dataset but it's giving me an error I don't understand:

(nst$regular already exists)

nst$regular<-as.ordered(nst$regular)

nst$age<-rnorm(n=942,mean=43.20488,sd=17.03)

nst$age<-round(age,digits=0)
regform<-regular~age

reglrm<-lrm(regform,nst)
summary(reglrm)
Error in summary.Design(reglrm) :
  adjustment values not defined here or with datadist for age

ive looked at the help file for lrm and thought it was simple enough but apparently not. any help would be greatly appreciated.

        [[alternative HTML version deleted]]



R-help_at_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. Received on Tue 26 Feb 2008 - 21:45:34 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 26 Feb 2008 - 22:30:17 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive