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, ...)
Methods (by class)
zero(mcarray)
: Zero an mcarray objectzero(mcmcarray)
: Zero an mcmcarray objectzero(mcmcr)
: Zero an mcmcr object
Examples
zero(mcmcr_example, pars = "beta")
#> Warning: `zero()` was deprecated in mcmcr v0.2.1.
#> ℹ Please use `fill_all()` instead.
#> $alpha
#> [1] 3.718025 4.718025
#>
#> nchains: 2
#> niters: 400
#>
#> $beta
#> [,1] [,2]
#> [1,] 0 0
#> [2,] 0 0
#>
#> nchains: 2
#> niters: 400
#>
#> $sigma
#> [1] 0.7911975
#>
#> nchains: 2
#> niters: 400
#>