View source: R/simulate_pls_data.R
| simulate_pls_data | R Documentation |
Simulate a univariate-response PLS dataset using the Li et al.-style
generator available in plsRglm.
simulate_pls_data(n, p, true_ncomp, seed = NULL, model = "li2002")
n |
Number of observations. |
p |
Number of predictors. |
true_ncomp |
True number of latent components. |
seed |
Optional random seed. If supplied, it is used only for this call. |
model |
Simulation model. Only |
A list with components x, y, data, true_ncomp, seed, and
model.
sim <- simulate_pls_data(n = 20, p = 10, true_ncomp = 2, seed = 42)
str(sim)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.