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.  


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