Re: [R] AFT model time-dependent with weibull distribution

2012-08-04 Thread hafida
thanks a lot sorry for the mistake that i do in exponential, i am "francophone" and for the programme if we want to apply the "power rule " condition we use log(vi). it works thank yo -- View this message in context: http://r.789695.n4.nabble.com/AFT-model-time-dependent-with-weibull-di

Re: [R] AFT model time-dependent with weibull distribution

2012-08-04 Thread Rui Barradas
Hello, Vous êtes française? It shows, in english it would be 'exponential', with an 'a'. Worked with me, after reading the manual. dataexp <- read.table(text=" vi Ti 1 265.79 2 26 1579.52 3 26 2323.70 4 28 68.85 [...] 73 380.39 74 381.13 75 380.09 76 382.38 ", he

Re: [R] AFT model time-dependent with weibull distribution

2012-08-04 Thread David Winsemius
On Aug 4, 2012, at 10:45 AM, hafida wrote: Dear R-community, I have tried to estimate an EXPONENTIEL accelerated failure time(AFT) power rule model with time-independent . For that purpose, I have used the eha package. Please, consider this example: vi Ti 1 265.79 2 26 1579.

Re: [R] AFT model time-dependent with weibull distribution

2012-08-04 Thread hafida
Dear R-community, > > I have tried to estimate an EXPONENTIEL accelerated failure time(AFT) > power rule model with time-independent . For that purpose, I have used > the eha package. > Please, consider this example: vi Ti 1 265.79 2 26 1579.52 3 26 2323.70 4 28 68.85 5 28

Re: [R] AFT model time-dependent with weibull distribution

2011-08-21 Thread JPF
thanks! -- View this message in context: http://r.789695.n4.nabble.com/AFT-model-time-dependent-with-weibull-distribution-tp3755079p3758267.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat

Re: [R] AFT model time-dependent with weibull distribution

2011-08-21 Thread Göran Broström
On Sat, Aug 20, 2011 at 7:33 PM, JPF wrote: > > Göran Broström wrote: >> >> >> Good. Do you still need answers to your other questions? >> >> > > Yes. Could answer the following two questions: > > 1- Can I use phreg function to estimate  a model with time-dependent > covariates? In case of a posit

Re: [R] AFT model time-dependent with weibull distribution

2011-08-20 Thread JPF
question 2 *aftreg vs. survreg* for aftreg = S0 *{t/exp(b-BXi)]^a} a= shape and b= log(scale) for survreg and stata S0 *{t*exp(intercept+BXi)]^1/p} p=shape /intercept, log(scale) and estimates are equivalent with reversed sign./ *PH and AFT* /phreg.Bhat= aftreg.Bhat * shape /

Re: [R] AFT model time-dependent with weibull distribution

2011-08-20 Thread JPF
Göran Broström wrote: > > > Good. Do you still need answers to your other questions? > > Yes. Could answer the following two questions: 1- Can I use phreg function to estimate a model with time-dependent covariates? In case of a positive answer, how? 2- I could not find any example that

Re: [R] AFT model time-dependent with weibull distribution

2011-08-20 Thread Göran Broström
On Sat, Aug 20, 2011 at 4:19 AM, JPF 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 i

Re: [R] AFT model time-dependent with weibull distribution

2011-08-19 Thread JPF
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

Re: [R] AFT model time-dependent with weibull distribution

2011-08-19 Thread JPF
Dear Prof. Broström, I have searched in the reference manual inside the package eha, updated recently. I did not find any description on how to enter id in the aftreg function except the description of the argument. Can you refer to a specific part of the manual? Do you mean another documentatio

Re: [R] AFT model time-dependent with weibull distribution

2011-08-19 Thread Göran Broström
On Fri, Aug 19, 2011 at 2:55 PM, javier palacios wrote: > Dear R-community, > > I have tried to estimate an accelerated failure time(AFT) and proportional > hazard (PH) parametric survival model with time-independent  and > time-dependent covariates. For that purpose, I have used the eha package.

[R] AFT model time-dependent with weibull distribution

2011-08-19 Thread javier palacios
Dear R-community, I have tried to estimate an accelerated failure time(AFT) and proportional hazard (PH) parametric survival model with time-independent and time-dependent covariates. For that purpose, I have used the eha package. Please, consider this example: weibullph <- phreg(Surv(sta,ti