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]]

