Learn R Programming

mcmcr (version 0.6.1)

zero: Zero MCMC sample values

Description

Zeros an MCMC object's sample values.

Usage

zero(x, ...)

# S3 method for mcarray zero(x, ...)

# S3 method for mcmcarray zero(x, ...)

# S3 method for mcmcr zero(x, pars = NULL, ...)

Arguments

x

The MCMC object.

...

Unused.

pars

A character vector (or NULL) of the pars to zero.

Value

The MCMC

Methods (by class)

  • mcarray: Zero an mcarray object

  • mcmcarray: Zero an mcmcarray object

  • mcmcr: Zero an mcmcr object

Details

It is used for removing the effect of a random effect where the expected value is 0.

Examples

Run this code
# NOT RUN {
zero(mcmcr_example, pars = "beta")
# }

Run the code above in your browser using DataLab