[R] How does survreg ordered factors vs not ordered factors?
wwreith
reith_william at bah.com
Mon Apr 23 15:29:19 CEST 2012
Consider the following generic code for a survival model
survobj<-Surv(data$Time,data$Satisfactory)
survmodel<-survreg(survobj~x1+x2+x3+x4+x5+x6, data=data, dist="weibull")
survsum<-summary(survmodel)
survsum
My question: Does anyone know what exactly survreg() does differently if
x1<-factor(data$x1, ordered=TRUE)
x2<-factor(data$x2, ordered=TRUE)
vs.
x1<-factor(data$x1)
x2<-factor(data$x2)
Thanks,
William
--
View this message in context: http://r.789695.n4.nabble.com/How-does-survreg-ordered-factors-vs-not-ordered-factors-tp4580395p4580395.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list