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.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to