s-news
[Top] [All Lists]

FW: Weibull questions

To: "S-News List" <s-news@lists.biostat.wustl.edu>
Subject: FW: Weibull questions
From: "Chris Wilkinson" <chrisw@wam.umd.edu>
Date: Mon, 17 May 2004 15:24:33 -0400
Importance: Normal
Organization: University of Maryland
Reply-to: <chrisw@wam.umd.edu>
I got some different results from S+ and an independent method (Statistica)
for the same data (10 uncensored failure times)

> survReg(Surv(ttf) ~ 1, data=data1, dist="weibull")
Call:
survReg(formula = Surv(ttf) ~ 1, data = data1, dist = "weibull")

Coefficients:
 (Intercept) 
    5.200735

Scale= 0.1673101 

Loglik(model)= -48.8   Loglik(intercept only)= -48.8
n= 10

whereas Statistica (2-p Weibull) gives scale = 181.4 and shape = 5.98

Now I am confused as to what parameterization is used in survReg().
Statistica uses exp(-(t/scale)^shape)) as Spencer suggests S+ does but the
results suggest survReg() uses something different but what?


Chris Wilkinson

-----Original Message-----
From: s-news-owner@lists.biostat.wustl.edu
[mailto:s-news-owner@lists.biostat.wustl.edu] On Behalf Of Terry Therneau
Sent: Sunday, May 16, 2004 9:13 PM
To: kamiltoth@yahoo.com
Cc: s-news@lists.biostat.wustl.edu
Subject: Re: [S] Weibull questions


 
  2. How to fit a weibull?
      Although survReg and censorreg were designed to allow for censored
data,  they work just fine with ordinary Weibull data.
 
        fit <- survReg(Surv(y) ~ x1 + x2 + ...., data=mydata,
dist='weibull')
        
        
                Terry Therneau
                

--------------------------------------------------------------------
This message was distributed by s-news@lists.biostat.wustl.edu.  To
unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with the
BODY of the message:  unsubscribe s-news

Attachment: data1.txt
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>