bpaft {spsurv}R Documentation

Bernstein Polynomial Based Accelerated Failure Time Model

Description

Fits the BPAFT model to time-to-event data.

Usage

bpaft(formula, degree, data, approach = c("mle", "bayes"), ...)

Arguments

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

Value

An object of class 'spbp'.

See Also

spbp, bpph and bppo for other BP based models.

Examples


library("spsurv")
data("veteran")

fit <- bpaft(Surv(time, status) ~ karno + celltype,
data = veteran)

summary(fit)


[Package spsurv version 1.0.0 Index]