Generate simulated data from a binary (logistic) factor model.
generate_binary_data(n = 100, p = 50, q = 3)A named list with components:
Binary matrix (n x p). Generated 0/1 responses.
Integer. True number of factors used in simulation.
Numeric matrix (n x q). True latent factor scores.
Numeric matrix (p x q). True factor loadings.
Numeric vector (length p). Item intercepts.
Integer. Number of observations.
Integer. Number of variables.
Integer. True number of latent factors.