[R] AFT model time-dependent with weibull distribution
Göran Broström
goran.brostrom at gmail.com
Sat Aug 20 17:31:48 CEST 2011
On Sat, Aug 20, 2011 at 4:19 AM, JPF <xpfenech at gmail.com> wrote:
>
> JPF wrote:
>>
>>
>>
>> weibullaft<-aftreg(Surv(sta,time,S) ~ TDC1 + TIC1, dist="weibull",
>> data.frame=Data)
>>
>> ## aftreg gives an error when I add an ID argument... That should be used
>> for controlling for time-varying variables.
>>
>> Error in aftreg.fit(X, Y, dist, strats, offset, init, shape, id, control,
>> :
>> *Overlapping intervals for id 2 *
>>
>> From help(aftreg): id If there are more than one spell per individual, it
>> is essential to keep spells together by the id argument. This allows for
>> time-varying covariates.
>>
>>
>
> This is solved. It gave the overlapping intervals error, but now it is
> solved: /id=ID/, just as before.
>
Good. Do you still need answers to your other questions?
G.
> --
> View this message in context: http://r.789695.n4.nabble.com/AFT-model-time-dependent-with-weibull-distribution-tp3755079p3756502.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.
>
--
Göran Broström
More information about the R-help
mailing list