Internal function: M-fold CV of SpatPCA with selected K
spatpcaCVWithSelectedK(
x,
Y,
M,
tau1,
tau2,
gamma,
shuffle_split,
maxit,
thr,
l2
)
A list of objects including
A list of resultant objects produced by spatpcaCV
Selected K based on CV.
Location matrix
Data matrix
The number of folds for cross validation; default is 5.
Vector of a non-negative smoothness parameter sequence. If NULL, 10 tau1 values in a range are used.
Vector of a non-negative sparseness parameter sequence. If NULL, none of tau2 is used.
Vector of a non-negative hyper parameter sequence for tuning eigenvalues. If NULL, 10 values in a range are used.
Vector of indices for random splitting Y into training and test sets
Maximum number of iterations. Default value is 100.
Threshold for convergence. Default value is \(10^{-4}\).
Vector of a non-negative tuning parameter sequence for ADMM use