Greetings, useRs.

Does anybody have replication of the examples from the RMS book by Harrell 
coded in R? I find that most the code does not work and it takes too much time 
to debug.

For example from p.276
> age.t <- w[,"age"]
> f.full <- 
> lrm(cvd~scored(rx)+rcs(dtime,5)+age.t+wt.t+pf.t+hx+sbp+ekg.t+sz.t+sg.t+ap.t+bm+hg.t,x=T,y=T)
Error in model.frame.default(formula = cvd ~ scored(rx) + rcs(dtime, 5) +  : 
  invalid type (list) for variable 'age.t'

thanks everybody.

Stephen 

______________________________________________
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.

Reply via email to