Weibull Survival Regression AFT

I don’t think the model you are implementing here is exactly the same as the one in R.