Extract samples from a fitted spbp
model.
# S3 method for spbp extract(spbp, pars = c("beta", "gamma"), ...)
spbp | an object of class `spbp` result of a |
---|---|
pars | parameters to be selected. |
... | arguments inherent from |
see extract
.
library("spsurv") data("veteran") fit <- bpph(Surv(time, status) ~ karno + factor(celltype), data = veteran)#>extract(fit)#> Warning: not applicable, change approach to 'bayes' to get MCMC chains density plots