zero: Zero MCMC sample values

View source: R/zero.R

zeroR Documentation

Zero MCMC sample values

Description

Zeros an MCMC object's sample values.

Usage

zero(x, ...)

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

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

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

Arguments

x

The MCMC object.

...

Unused.

pars

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

Details

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

Value

The MCMC

Methods (by class)

  • zero(mcarray): Zero an mcarray object

  • zero(mcmcarray): Zero an mcmcarray object

  • zero(mcmcr): Zero an mcmcr object

Examples

zero(mcmcr_example, pars = "beta")

poissonconsulting/mcmcr documentation built on Jan. 18, 2024, 1:11 a.m.