Generate simulated data from a Gaussian factor model with missing values.
generate_continuous_data_miss(
n = 100,
p = 50,
q = 3,
noise_sd = 1,
miss_prop = 0.05
)A named list with components:
Numeric matrix (n x p). Generated data with missing values (NA).
Numeric matrix (n x p). Complete data before missingness.
Integer. True number of factors used in simulation.
Numeric matrix (n x (q+1)). True latent factor scores with intercept.
Numeric matrix (p x (q+1)). True factor loadings.
Numeric. Proportion of entries set to missing.
Integer. Number of observations.
Integer. Number of variables.
Integer. True number of latent factors.
Numeric. Standard deviation of Gaussian noise.
Numeric in (0,1). Proportion of missing values (default 0.05).