phi {RaschSampler} | R Documentation |
Calculates the R_phi statistic, i.e., the range of the inter-column correlations (phi-coefficients) for a binary matrix.
phi(mat)
mat |
a binary matrix |
the range of the inter-column correlations
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) print(unlist(rso_st))