Re: [R] Fitting weibull and exponential distributions to left censoring data

2008-11-02 Thread Göran Broström
On Sun, Nov 2, 2008 at 11:22 AM, Christian Ritz [EMAIL PROTECTED] wrote: Hi Göran, the R package NADA is specifically designed for left-censored data: http://www.statistik.uni-dortmund.de/useR-2008/slides/Helsel+Lee.pdf The function cenreg() in NADA is a front end to survreg(). Nice; but

Re: [R] Fitting weibull and exponential distributions to left censoring data

2008-11-02 Thread Christian Ritz
Hi Göran, the R package NADA is specifically designed for left-censored data: http://www.statistik.uni-dortmund.de/useR-2008/slides/Helsel+Lee.pdf The function cenreg() in NADA is a front end to survreg(). Christian Göran Broström wrote: On Fri, Oct 31, 2008 at 2:27 PM, Terry Therneau

Re: [R] Fitting weibull and exponential distributions to left censoring data

2008-11-02 Thread Therneau, Terry M., Ph.D.
Brostram wrote The survreg function cannot fit left-censored data (correct me if I am wrong). in response to my suggestion to use that routine. You are wrong. Try reading the help file for survreg, or the references given there. The survreg function does not fit left-truncated data, however.

Re: [R] Fitting weibull and exponential distributions to left censoring data

2008-11-02 Thread Göran Broström
On Sun, Nov 2, 2008 at 3:57 PM, Therneau, Terry M., Ph.D. [EMAIL PROTECTED] wrote: Brostram wrote The survreg function cannot fit left-censored data (correct me if I am wrong). in response to my suggestion to use that routine. You are wrong. Try reading the help file for survreg, or the

Re: [R] Fitting weibull and exponential distributions to left censoring data

2008-11-01 Thread Göran Broström
On Fri, Oct 31, 2008 at 2:27 PM, Terry Therneau [EMAIL PROTECTED] wrote: Use the survreg function. The survreg function cannot fit left censored data (correct me if I am wrong!), neither can phreg or aftreg (package eha). On the other hand, if Borja instead wanted to fit left truncated data (it

Re: [R] Fitting weibull and exponential distributions to left censoring data

2008-10-31 Thread Terry Therneau
Use the survreg function. There are many different ways to parameterize a Weibull. The survreg function imbeds it a general location-scale familiy, which is a different parameterization than the rweibull function. y - rweibull(1000, shape=2, scale=5) survreg(Surv(y)~1, dist=weibull)

[R] Fitting weibull and exponential distributions to left censoring data

2008-10-28 Thread Borja Soto Varela
Dear R-users I have some datasets, all left-censoring, and I would like to fit distributions to (weibull,exponential, etc..). I read one solution using the function survreg in the survival package. i.e survreg(Surv(...)~1, dist=weibull) but it returns only the scale parameter. Does anyone know

Re: [R] Fitting weibull and exponential distributions to left censoring data

2008-10-28 Thread Fernando Marmolejo Ramos
Dear Barja Have you looked at gamlss y gamlss.dist libaries? There some functions called WEI, WEI2, and WEI3 Cheers, Fer __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide