Description Usage Arguments Details Value References
View source: R/matrixpls.crossvalidate.R
matrixpls.crossvalidate
Calculates crossvalidation predictions using matrixpls
.
1 2 
data 
Matrix or data frame containing the raw data. 
model 
There are two options for this argument: 1. lavaan script or lavaan parameter
table, or 2. a list containing three matrices

... 
All other arguments are passed through to 
predictFun 
The function used to calculate the predictions. 
nGroup 
The number of groups to divide the data into. 
blindfold 
Whether blindfolding should be used instead of holdout sample crossvalidation. 
imputationFun 
The function used to impute missing data before blindfold prediction.
If 
In crossvalidation, some elements of the data matrix are set to missing and then predicted based on the remaining observations. The process is repeated until all elements of the data have been predicted.
Crossvalidation is typically applied by dividing the data into two groups, the training sample and the validation sample. The prediction model is calculated based on the training sample and used to calculate predictions for the validation sample.
In blindfolding, the data are not omitted case wise, but elements of the data are omitted diagonally. After this, imputation is applied to missing data and the prediction model is calibrated with the dataset containing also the imputations. The imputed values are then predicted with the model.
A matrix containing predictions calculated with crossvalidation.
Chin, W. W. (2010). How to write up and report PLS analyses. In V. Esposito Vinzi, W. W. Chin, J. Henseler, & H. Wang (Eds.), Handbook of partial least squares (pp. 655<e2><80><93>690). Berlin Heidelberg: Springer.
Chin, W. W. (1998). The partial least squares approach to structural equation modeling. In G. A. Marcoulides (Ed.), Modern methods for business research (pp. 295<e2><80><93>336). Mahwah, NJ: Lawrence Erlbaum Associates Publishers.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.