Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

STPGA (version 2.0)

DOPT: DOPT

Description

Calculate det((PTrainPTrain+lambdaI))

Usage

DOPT(Train, Test, P, lambda = 1e-05)

Arguments

Train
vector of identifiers for individuals in the training set
Test
vector of identifiers for individuals in the test set
P
$n \times k$ matrix of the first PCs of the predictor variables. The matrix needs to have union of the identifiers of the candidate and test individuals as rownames.
lambda
scalar shrinkage parameter ($\lambda>0$).

Value

  • value of the criterion.