View source: R/complete-terms.R
complete_terms.mcmc | R Documentation |
Adds any absent elements to an mcmc object.
## S3 method for class 'mcmc'
complete_terms(x, silent = FALSE, ...)
x |
An mcmc object. |
silent |
A flag specifying whether to suppress warning messages. |
... |
Unused. |
The terms are repaired before being completed. Missing or invalid or inconsistent terms are dropped with a warning.
The repaired and complete mcmc object.
mcmc <- as_mcmc(nlist(beta = matrix(1:4, nrow = 2)))
mcmc <- mcmc[, -4, drop = FALSE]
complete_terms(mcmc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.