View source: R/simulatePilotData.R
simulatePilotData | R Documentation |
Simulate cluster pilot data
simulatePilotData(seed = 123, nvar, clus.size, nvar_rel,m, A = 2, S1 = NULL, S2 = NULL)
seed |
Seed value |
nvar |
Number of variables |
clus.size |
Vector of two elements, specifying the size of classes (only two classes are considered) |
nvar_rel |
Number of variables relevant to predict the dependent variable |
m |
Effect size of separation between classes |
A |
Oracle number of score components |
S1 |
Covariance matrix for the first class. Default |
S2 |
Covariance matrix for the second class. Default |
Angela Andreella @return List with the following objects:
matrix of predictor variables with nvar
columns and the sum of clus.size
values as number of rows.
vector of dependent variable with the sum of clus.size
values as length
For the general framework of power analysis for PLS-based methods see:
Andreella, A., Fino, L., Scarpa, B., & Stocchero, M. (2024). Towards a power analysis for PLS-based methods. arXiv preprint https://arxiv.org/abs/2403.10289.
datas <- simulatePilotData(nvar = 10, clus.size = c(5,5),m = 6,nvar_rel = 5,A = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.