| predict.sesJIVE | R Documentation |
Predicted values based on the an sesJIVE model.
## S3 method for class 'sesJIVE' predict( object, newdata, threshold = 1e-05, max.iter = 2000, show.error = F, show.message = T, train = F, ... )
object |
An object of class "sesJIVE", usually a fitted sesJIVE model. |
newdata |
A list of matrices representing the new X datasets. |
threshold |
threshold for convergence |
max.iter |
max iterations |
show.error |
show error during iterations |
show.message |
show confirmation when method converges |
train |
A boolean for whether or not the predict function is running for the training dataset. Default is FALSE. |
... |
Additional arguments |
predict.sesJIVE calculates predicted values for newdata
based on the fitted model. The function first calculates the joint and
individual score matrices for newdata. Note that the fitted model's
loadings and coefficients are treated as known and will not get re-calculated.
Once the new score matrices are obtained, the linear prediction model will be
evaluated using the new scores as the data matrix.
A list of the following components is returned:
Ypred |
The fitted Y values. |
S_J |
A matrix capturing the joint scores of newdata. |
S_I |
A list containing matrices that capture the individual scores of newdata. |
iterations |
The number of iterations needed to reach convergence. |
error |
The error value at which the model converged. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.