Learn R Programming

pECV (version 1.0.1)

generate_continuous_data: Generate continuous data example

Description

Generate simulated data from a Gaussian factor model.

Usage

generate_continuous_data(n = 100, p = 50, q = 3, noise_sd = 1)

Value

A named list with components:

resp

Numeric matrix (n x p). Generated observed data.

true_q

Integer. True number of factors used in simulation.

theta_true

Numeric matrix (n x (q+1)). True latent factor scores with intercept.

A_true

Numeric matrix (p x (q+1)). True factor loadings.

Arguments

n

Integer. Number of observations.

p

Integer. Number of variables.

q

Integer. True number of latent factors.

noise_sd

Numeric. Standard deviation of Gaussian noise.