On Wed, Aug 1, 2012 at 3:08 PM, <fra.meu...@hotmail.it> wrote:

> Dear Göran Broström,
> I am trying to use AFTREG function for R to estimate a loglogistic
> survival function, including time dependent covariates.
> Actually, my Subset includes some partial events; the idea is  to model
> this kind of events using something similar to  “weights” in the SURVREG
>  function.
> In particular I would like to manage this kind of Dataset:
>
> IdRow   StartTime       EndTime Event   IdObs   Cov     Weight
> 1       0       1       0       1a      0.1284  0.3
> 2       1       2       1       1a      0.4896  0.3
> 3       2       3       0       1b      0.7017  0.7
> 4       3       4       1       1b      0.8564  0.7
> 5       0       1       0       2       0.7964  1
> 6       1       2       0       2       0.8466  1
> 7       2       3       0       2       0.2234  1
> 8       3       4       1       2       0.843742        1
> 9       0       1       0       3       0.643382        1
> 10      1       2       0       3       0.300433        1
> 11      2       3       0       3       0.666964        1
>
> with this function
>
> AftRegTD<-aftreg(Surv(StartTime,EndTime,Event)~Cov,dist="loglogistic",id=dfTest$IdObs,data=dfTest)
>
> Any suggestion to introduce "weights" as argument in aftreg function?
>

No, not for the moment, although it would be straightforward to add.
However, I am not sure that case weights is what you are seeking.

Göran


> Thanks,
> Francesca
>



-- 
Göran Broström

        [[alternative HTML version deleted]]

______________________________________________
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