binary_multiESS: Multivariate ESS for binary variables

binary_multiESSR Documentation

Multivariate ESS for binary variables

Description

Multivariate ESS for binary variables

Usage

binary_multiESS(x, covmat = NULL, ncores = 2, eigen = FALSE, ...)

Arguments

x

a matrix or data.frame containing only binary variables

covmat

(optional) covariance matrix.

ncores

(optional) number of cores to be used.

...

arguments for mcse.multi function. Don't use this if a suitable matrix estimate from mcse.multi or mcse.initseq is already obtained (copied from mcmcse documentation).

Details

This is strongly based on the function multiESS of the mcmcse package.

Value

the multivariate ESS of the variables.

Examples

N <- 100
M <- 1000
X <- matrix(rbinom(n = N*M, size = 1, p = .234), ncol = N, nrow = M)
binary_multiESS(X)
mcmcse::multiESS(X)

maxbiostat/BinaryMarkovChains documentation built on Dec. 11, 2023, 4:29 a.m.