zero: Zero MCMC sample values

Description Usage Arguments Details Value Methods (by class) Examples

View source: R/zero.R

Description

Zeros an MCMC object's sample values.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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)

Examples

1
zero(mcmcr_example, pars = "beta")

mcmcr documentation built on Sept. 7, 2021, 1:07 a.m.