Learn R Programming

mcmcr (version 0.0.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, parameters = NULL, ...)

Arguments

x

The MCMC object.

...

Unused

parameters

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

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, parameters = "beta")
# }

Run the code above in your browser using DataLab