Re: [R] predicting expected number of events using a coxph model

2012-07-02 Thread Peter Ehlers
On 2012-07-02 14:14, peter dalgaard wrote: On Jul 2, 2012, at 19:27 , agittens wrote: Peter Dalgaard-2 wrote I fit a coxph model: coxphfit <- coxph(Surv(sampledLifetime, !sampledCensoredQ) ~ curpbc6 + prevpbc6, sampledTimeSeries) Now I'm trying to predict the expected number of events

Re: [R] predicting expected number of events using a coxph model

2012-07-02 Thread peter dalgaard
On Jul 2, 2012, at 19:27 , agittens wrote: > > Peter Dalgaard-2 wrote >> >>> I fit a coxph model: >>> >>> coxphfit <- coxph(Surv(sampledLifetime, !sampledCensoredQ) ~ curpbc6 + >>> prevpbc6, sampledTimeSeries) >>> >>> Now I'm trying to predict the expected number of events using a new >>>

Re: [R] predicting expected number of events using a coxph model

2012-07-02 Thread agittens
Peter Dalgaard-2 wrote > >> I fit a coxph model: >> >> coxphfit <- coxph(Surv(sampledLifetime, !sampledCensoredQ) ~ curpbc6 + >> prevpbc6, sampledTimeSeries) >> >> Now I'm trying to predict the expected number of events using a new >> dataset. >> The documentation suggests that >> >> coxPre

Re: [R] predicting expected number of events using a coxph model

2012-06-30 Thread peter dalgaard
On Jun 29, 2012, at 23:56 , agittens wrote: > I fit a coxph model: > > coxphfit <- coxph(Surv(sampledLifetime, !sampledCensoredQ) ~ curpbc6 + > prevpbc6, sampledTimeSeries) > > Now I'm trying to predict the expected number of events using a new dataset. > The documentation suggests that > >

[R] predicting expected number of events using a coxph model

2012-06-29 Thread agittens
I fit a coxph model: coxphfit <- coxph(Surv(sampledLifetime, !sampledCensoredQ) ~ curpbc6 + prevpbc6, sampledTimeSeries) Now I'm trying to predict the expected number of events using a new dataset. The documentation suggests that coxPred <- predict(coxphfit, newdata = testTimeSeries, type="ex