sim_XY | R Documentation |
Simulate data matrix under the alternative hypothesis with n
observations by kernel density estimation
sim_XY(out, n, seed = 123, post.transformation = TRUE, A, fast = FALSE)
out |
Output from |
n |
Number of observations to simulate |
seed |
Seed value |
post.transformation |
Boolean value. Default to |
A |
Number of score components used in |
fast |
Use the function |
Returns a list:
dependent variable, matrix with 2 columns and n
rows (observations)
predictor variables, matrix with n
rows (observations) and number of columns equal to out$X
(i.e., original dataset)
Angela Andreella
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.
PLSc
, ptPLSc
datas <- simulatePilotData(nvar = 10, clus.size = c(5,5),m = 6,nvar_rel = 5,A = 2)
out <- PLSc(X = datas$X, Y = datas$Y, A = 3)
out_sim <- sim_XY(out = out, n = 10, A = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.