R/WeibullReg.R

WeibullReg <- function (formula, data = parent.frame(), conf.level = 0.95){
    m <- survival::survreg(formula, data, dist = "weibull")
    mle <- ConvertWeibull(m, conf.level = conf.level)
    return(list(formula = formula, coef = mle$vars, HR = mle$HR, ETR = mle$ETR, summary = summary(m)))
}

Try the SurvRegCensCov package in your browser

Any scripts or data that you put into this service are public.

SurvRegCensCov documentation built on Sept. 27, 2023, 5:09 p.m.