R/WeibullReg.R

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

Try the biostatUZH package in your browser

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

biostatUZH documentation built on May 2, 2019, 6:06 p.m.