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 |
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 |
qsamp |
a matrix with |
qest |
a summary of |
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)