W**********E 发帖数: 242 | 1 > library(survival)
Loading required package: splines
> weib.fit<-survreg(Surv(time,status)~x,dist="weib",data=aml)
> summary(weib.fit)
Call:
survreg(formula = Surv(time, status) ~ x, data = aml, dist = "weib")
Value Std. Error z p
(Intercept) 4.109 0.300 13.70 9.89e-43
xNonmaintained -0.929 0.383 -2.43 1.51e-02
Log(scale) -0.235 0.178 -1.32 1.88e-01
Scale= 0.791
Weibull distribution
Loglik(model)= -80.5 Loglik(intercept only)= -83.2
Ch | G***G 发帖数: 16778 | 2 I have another question.
if dist is omitted, what kind of distribution does survreg use?
【在 W**********E 的大作中提到】 : > library(survival) : Loading required package: splines : > weib.fit<-survreg(Surv(time,status)~x,dist="weib",data=aml) : > summary(weib.fit) : Call: : survreg(formula = Surv(time, status) ~ x, data = aml, dist = "weib") : Value Std. Error z p : (Intercept) 4.109 0.300 13.70 9.89e-43 : xNonmaintained -0.929 0.383 -2.43 1.51e-02 : Log(scale) -0.235 0.178 -1.32 1.88e-01
|
|