extract-methods: Extract method for fitted spbp models

Description Usage Arguments Value See Also Examples

Description

Extract samples from a fitted spbp model.

Usage

1
2
## 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

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

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

extract(fit)

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