powered by
One Monte-Carlo replicate; returns empirical error, exceedance indicator, theoretical bounds, and assumption-check flags.
g_theorem(n, p, m, g_type, epsilon, zero_tol = 0.02)
one-row data-frame
sample size
number of observed variables
number of latent factors
character: "linear", "weak_nonlinear", "strong_nonlinear"
error threshold
zero-mean tolerance (default 0.02)
df <- g_theorem(500, 200, 5, "linear", 0.6)
Run the code above in your browser using DataLab