extract.spbp {spsurv}R Documentation

Extract method for fitted spbp models

Description

Extract samples from a fitted spbp model.

Usage

## S3 method for class 'spbp'
extract(spbp, pars = c("beta", "gamma"), ...)

Arguments

spbp

an object of class 'spbp' result of a spbp fit.

pars

parameters to be selected.

...

arguments inherent from extract.

Value

see extract.

See Also

spbp, stan_dens.spbp, traceplot.spbp

Examples


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

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

extract(fit)


[Package spsurv version 1.0.0 Index]