predict.sesJIVE: Prediction for sesJIVE

View source: R/sesJIVE.R

predict.sesJIVER Documentation

Prediction for sesJIVE

Description

Predicted values based on the an sesJIVE model.

Usage

## S3 method for class 'sesJIVE'
predict(
  object,
  newdata,
  threshold = 1e-05,
  max.iter = 2000,
  show.error = F,
  show.message = T,
  train = F,
  ...
)

Arguments

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

Details

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.

Value

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.


enorthrop/sup.r.jive documentation built on Nov. 18, 2022, 6:01 p.m.