Skip to contents

Project new observations onto previously fitted PLS–Cox components.

Usage

big_pls_cox_transform(
  X,
  means,
  sds,
  weights,
  loadings,
  comps = seq_len(ncol(weights))
)

Arguments

X

New data: a numeric matrix or a bigmemory::big.matrix.

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).

Value

A numeric matrix of scores with one row per observation in X and one column per requested component.