phi.range: Example User Function

Description Usage Arguments Value Examples

Description

Calculates the R_φ statistic, i.e., the range of the inter-column correlations (φ-coefficients) for a binary matrix.

Usage

1
phi.range(mat)

Arguments

mat

a binary matrix

Value

The range of the inter-column correlations

Examples

1
2
3
4
5
ctr <- rsctrl(burn_in = 10, n_eff = 5, step=10, seed = 123, tfixed = FALSE)
mat <- matrix(sample(c(0,1), 50, replace = TRUE), nr = 10)
rso <- rsampler(mat, ctr)
rso_st <- rstats(rso,phi.range)
print(unlist(rso_st))

eRm documentation built on May 20, 2017, 2:09 a.m.

Search within the eRm package
Search all R packages, documentation and source code