| opls_cv_cpp | R Documentation |
For internal use only!.
opls_cv_cpp(X, Y, scale, method,
mindices, pindices,
min_component, ncomp,
new_x,
maxiter, tol,
wapls_grid,
algorithm,
statistics = TRUE)
X |
a matrix of predictor variables. |
Y |
a matrix of a single response variable. |
scale |
a logical indicating whether the matrix of predictors
( |
method |
the method used for regression. One of the following options:
|
mindices |
a matrix with |
pindices |
a matrix with |
min_component |
an integer indicating the number of minimum pls
components (if the |
ncomp |
an integer indicating the number of pls components. |
new_x |
a matrix of one row corresponding to the observation to be
predicted (if the |
maxiter |
maximum number of iterations. |
tol |
limit for convergence of the algorithm in the nipals algorithm. |
wapls_grid |
the grid on which the search for the best combination of
minimum and maximum pls factors of |
algorithm |
either pls ( |
statistics |
a logical value indicating whether the precision and accuracy statistics are to be returned, otherwise the predictions for each validation segment are retrieved. |
if statistics = true a list containing the following one-row matrices:
rmse_seg: the RMSEs.
st_rmse_seg: the standardized RMSEs.
rsq_seg: the coefficients of determination.
if statistics = false a list containing the following one-row matrices:
predictions: the predictions of each of the validation
segments in pindices. Each column in pindices contains the
validation indices of a segment.
st_rmse_seg: the standardized RMSEs.
rsq_seg: the coefficients of determination.
If method = "wapls", data of the pls weights are output in this
list(compweights).
If method = "completewapls1", data of all the combination of
components passed in wapls_grid are
output in this list(complete_compweights).
Leonardo Ramirez-Lopez
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.