View source: R/big_pls_cox_transform.R
| big_pls_cox_transform | R Documentation |
Project new observations onto previously fitted PLS–Cox components.
big_pls_cox_transform(
X,
means,
sds,
weights,
loadings,
comps = seq_len(ncol(weights))
)
X |
New data: a numeric matrix or a |
means |
Column means used to center the original predictors. |
sds |
Column standard deviations used to scale the original predictors. |
weights |
PLS weight matrix (p x ncomp) from a fitted model. |
loadings |
PLS loading matrix (p x ncomp) from a fitted model. |
comps |
Integer vector of component indices to return (1-based). |
A numeric matrix of scores with one row per observation in X
and one column per requested component.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.