bpph: Bernstein Polynomial Based Proportional Hazards Model

Description Usage Arguments Value See Also Examples

View source: R/bpfits.R

Description

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

Usage

1
bpph(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, bppo and bpaft for other BP based models.

Examples

1
2
3
4
5
6
7
library("spsurv")
data("veteran")

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

summary(fit)

spsurv documentation built on April 14, 2020, 7:20 p.m.