complete_terms.mcmc: Complete Terms

Description Usage Arguments Details Value Examples

View source: R/complete-terms.R

Description

Adds any absent elements to an mcmc object.

Usage

1
2
## S3 method for class 'mcmc'
complete_terms(x, silent = FALSE, ...)

Arguments

x

An mcmc object.

silent

A flag specifying whether to suppress warning messages.

...

Unused.

Details

The terms are repaired before being completed. Missing or invalid or inconsistent terms are dropped with a warning.

Value

The repaired and complete mcmc object.

Examples

1
2
3
mcmc <- as_mcmc(nlist(beta = matrix(1:4, nrow = 2)))
mcmc <- mcmc[, -4, drop = FALSE]
complete_terms(mcmc)

nlist documentation built on Sept. 5, 2021, 6:05 p.m.