Learn R Programming

mcmcr (version 0.6.2)

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, ...)

Value

The MCMC

Arguments

x

The MCMC object.

...

Unused.

pars

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

Methods (by class)

  • zero(mcarray): Zero an mcarray object

  • zero(mcmcarray): Zero an mcmcarray object

  • zero(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
zero(mcmcr_example, pars = "beta")

Run the code above in your browser using DataLab