powered by
Fits the BPAFT model to time-to-event data.
bpaft(formula, degree, data, approach = c("mle", "bayes"), ...)
a Surv object with time to event observations, right censoring status and explanatory terms.
Bernstein polynomial degree.
a data.frame object.
Bayesian or maximum likelihood estimation methods, default is approach = "mle".
further arguments passed to or from other methods
An object of class `spbp`.
spbp, bpph and bppo for other BP based models.
spbp
bpph
bppo
# NOT RUN { library("spsurv") data("veteran") fit <- bpaft(Surv(time, status) ~ karno + celltype, data = veteran) summary(fit) # }
Run the code above in your browser using DataLab