Learn R Programming

spsurv (version 1.0.0)

extract.spbp: Extract method for fitted spbp models

Description

Extract samples from a fitted spbp model.

Usage

# S3 method for 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

Run this code
# NOT RUN {
library("spsurv")
data("veteran")

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

extract(fit)

# }

Run the code above in your browser using DataLab