powered by
Generates multivariate data that follow a latent factor structure with censored errors (Normal, Student-t or Logistic).
censored_factor_models( n, p, m, distribution = c("normal", "t", "logistic"), df = NULL, seed = NULL )
A list with components:
numeric n × p matrix of observations
p × m factor loadings matrix
p × p diagonal uniqueness matrix
KMO measure of sampling adequacy
p-value of Bartlett's test
error distribution used
random seed
Sample size (> 0).
Number of observed variables (> 0).
Number of latent factors (< p).
Error distribution: "normal" (default), "t", "logistic".
Degrees of freedom when distribution = "t".
Optional random seed.
# \donttest{ set.seed(2025) obj <- censored_factor_models(200, 6, 2) psych::KMO(obj$data) # }
Run the code above in your browser using DataLab