Re: [R] Survreg function for loglogistic hazard estimation

2009-06-08 Thread chenjiakai
Dear Terry, Thanks a lot for your reply. The result of survreg reads like: Call: survreg(formula = Surv(end, status) ~ fico_demean, data = raw, dist = "loglogistic", model = TRUE) Value Std. Error z p (Intercept) 2.98365 1.34e-03 2233.2 0.00e+00 fico_demean

[R] Survreg function for loglogistic hazard estimation

2009-06-06 Thread chenjiakai
I am trying to use R to do loglogistic hazard estimation. My plan is to generate a loglogistic hazard sample data and then use survreg to estimate it. If everything is correct, survreg should return the parameters I have used to generate the sample data. I have written the following code to d