Calculate errors for the cross-validation for selecting nfeat.

getErr_nfeat(
  nfeatV,
  impScores,
  ncomp,
  XXtrain,
  YYtrain,
  XXtest,
  YYtest,
  center = TRUE,
  scale = FALSE,
  regMethod = "PLS",
  assayName = "logcounts",
  loss = c("Frobenius", "exponential")
)

Arguments

nfeatV

Vector.

impScores

Matrix.

ncomp

Integer.

XXtrain

Matrix.

YYtrain

Matrix.

XXtest

Matrix.

YYtest

Matrix.

center

Logic.

scale

Logic.

regMethod

Character.

assayName

Character.

loss

Type of loss function.

Value

A list.