Learn R Programming

BSGW (version 0.9.2)

summary.bsgw: Summarizing Bayesian Survival Generalized Weibull (BSGW) model fits

Description

summary method for class "bsgw".

Usage

"summary"(object, pval = 0.05, burnin = object$control$burnin, ...) "print"(x, ...)

Arguments

object
An object of class "bsgw", usually the result of a call to bsgw.
x
An object of class "summary.bsgw", usually the result of a call to summary.bsgw.
pval
Desired p-value, based on which lower/upper bounds will be calculated. Default is 0.05.
burnin
Number of samples to discard from the beginning of each MCMC chain before calculating median and lower/upper bounds.
...
Further arguments to be passed to/from other methods.

Value

The function summary.bsgw calculates median as well as lower/upper bounds for all model coefficients, given the supplied p-value. It also calculates the p-value for coefficients being significant smaller/larger than zero. It contains returns an object of class "summary.bsgw" with the following elements:

See Also

See summary for a description of the generic method.

The model fitting function is bsgw.

Examples

Run this code
library("survival")
data(ovarian)
est <- bsgw(Surv(futime, fustat) ~ ecog.ps + rx, ovarian
            , control=bsgw.control(iter=400, nskip=100))
summary(est, pval=0.1)

Run the code above in your browser using DataLab