coef.sbde {sbde}R Documentation

Coefficient Extraction from sbde Model Fit

Description

Post process MCMC output from sbde to create summaries of parameter and quantile estimates.

Usage

 
## S3 method for class 'sbde'
coef(object, burn.perc = 0.5, nmc = 200,
    prob = c(.001,.01,.1,1:99,99.9,99.99,99.999)/100, ...)

Arguments

object

a fitted model of the class sbde.

burn.perc

a positive fraction indicating what fraction of the saved draws are to be discarded as burn-in

nmc

integer giving the number of samples, post burn-in, to be used in Monte Carlo averaging

prob

a numeric vector of probabiities at which quantiles are to be estimated.

...

not currently implemented

Value

Extracts posterior summary of model parameters, as well as estimated quantiles. A list is returned invisibly with the following fields.

psamp

a matrix with 3 columns and nmc rows storing the posterior draws of the parameters of base distribution used in transformation

parametric

a matrix with posterior median, 2.5th and 97.5th percentiles of the parameters of the base distribution.

prob

numeric vector of probabilities at which quantiles have been estimated. Could differ slightly from the input vector prob, by removing repetitions, as well as values that are not strictly between zero and one.

qsamp

a matrix with nmc columns giving the posterior draws of the quantile values at levels given by prob.

qest

a summary of qsamp given by the posterior median and 95 precent credible interval end points.

ss

a vector of integers giving the indices of the mcmc samples that were used in posterior summary calculations.

See Also

sbde, summary.sbde and predict.sbde for model fitting under sbde.

Examples

y <- abs(rt(n=1000, df=4))
fit <- sbde(y, blocking="all", fbase="gpd", verbose=FALSE)
coef(fit)

[Package sbde version 1.0-1 Index]