print_Bwiqid: Print and summary methods for objects of class 'Bwiqid'

print.BwiqidR Documentation

Print and summary methods for objects of class 'Bwiqid'

Description

Both functions print details of the MCMC process to the Console. print also prints a table of summary statistics for the parameters and several MCMC diagnostic measures to the Console, while summary returns invisibly a corresponding data frame, which can be passed to View.

Usage

## S3 method for class 'Bwiqid'
print(x, digits=3, ...)

## S3 method for class 'Bwiqid'
summary(object, digits=3, ...)

Arguments

x, object

an object of class Bwiqid.

digits

the number of digits to print or include in the output.

...

further arguments for the print or summary function.

Details

The print function prints a table with a row for each parameter after removing duplicated rows. Duplication usually arises because a covariate has only a few unique values.

There are columns for each of the following summary statistics ...

mean the mean of each MCMC chain.
sd the standard deviation of each MCMC chain.
median the median of each MCMC chain.
HDIlo and HDIup the lower and upper values of a 95% Highest Density Interval CrI for each MCMC chain.

... and for some or all of the following diagnostics, depending on the MCMC engine used for fitting the model:

n.eff the effective chain length for the parameters adjusted for autocorrelation; for stable estimates of credible intervals this should be at least 10,000. See effectiveSize.
MCerror the Monte Carlo errors for the parameters, expressed as a percentage of the standard deviation. Values less than 5% are acceptable.
Rhat the with potential scale reduction factors for the parameters, which is 1 on convergence and should be < 1.05 for all parameters. See gelman.diag.

Value

print returns x invisibly. summary returns the table of summary statistics.

Author(s)

Mike Meredith.

Examples

# See examples for dippers.

wiqid documentation built on Nov. 18, 2022, 1:07 a.m.