coef.bayesCox: Extract Coefficients from Bayesian Cox Model

Description Usage Arguments Value See Also Examples

View source: R/coef.R

Description

Extract coefficient values from bayesCox fitting results, and summarize the posterior mean, posterior 2.5% and 97.5% quantiles into a data frame.

Usage

1
2
## S3 method for class 'bayesCox'
coef(object, ...)

Arguments

object

An object returned by function bayesCox.

...

Optional arguments. Currently, the only applicable arguemnt is level for the credible level. The default value is 0.95.

Value

A data.frame with 6 columns ("Low", "Mid", "High", "Time", "Cov", "Model"), where "Low" and "High" are the posterior 2.5% and 97.5% quantiles as default; "Mid" is the posterior mean; "Cov" and "Model" contain character values of the covariates and model types.

See Also

bayesCox, and plotCoef.

Examples

1
## See the examples in bayesCox.

wenjie2wang/dynsurv documentation built on Aug. 13, 2019, 8:11 p.m.