Re: [R] Use of the newdata parameter in the predict.coxph function

2013-02-25 Thread Andrews, Chris
Couldn't reproduce your error (but I did get a warning message): ads1S - with(ads1,Surv(INTERVAL_START,EVENT,STATUS,type=c('counting'))) Warning message: In Surv(INTERVAL_START, EVENT, STATUS, type = c(counting)) : Stop time must be start time, NA created cox_out -

[R] Use of the newdata parameter in the predict.coxph function

2013-02-24 Thread Steve Einbender
Hello, I've executed the following predict.coxph function to enable prediction for new variable values (error is included). *predict(cox_out,newdata=data.frame(Meter3.Value=100.001, Meter4.Value=200.001,Meter5.Value=300.001,Meter10.Value= 400.001,type=expected)) Error in model.frame.default(data