bppo {spsurv} | R Documentation |
Fits the BPPO model to time-to-event data.
bppo(formula, degree, data, approach = c("mle", "bayes"), ...)
formula |
a Surv object with time-to-event observations, right censoring status and explanatory terms. |
degree |
Bernstein polynomial degree. |
data |
a data.frame object. |
approach |
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 bpaft
for other BP based models.
library("spsurv")
data("veteran")
fit <- bppo(Surv(time, status) ~ karno + celltype,
data = veteran)
summary(fit)