Skip to content
Prev 68621 / 398528 Next

survreg with numerical covariates

As you can se from the example bellow, survreg works prefeclty fine with 
numerical values. (I'm runing R2.0.1 on WinXP(SP2) and 32bit AMD with 
survival version 2.17.).

As the posting guide asks, plese provide a small example.

Ales Ziberna
Loading required package: splines
Call:
survreg(formula = Surv(time, status) ~ age, data = cancer)

Coefficients:
(Intercept)         age
 6.88712062 -0.01360829

Scale= 0.7587515

Loglik(model)= -1151.9   Loglik(intercept only)= -1153.9
        Chisq= 3.91 on 1 degrees of freedom, p= 0.048
n= 228

----- Original Message ----- 
From: "Richard Mott" <Richard.Mott at well.ox.ac.uk>
To: <r-help at stat.math.ethz.ch>
Sent: Tuesday, April 26, 2005 11:32 PM
Subject: [R] survreg with numerical covariates