Usage
fregre.ppc.cv(fdataobj, y, kmax=8, lambda = 0, P = c(0, 0, 1),
criteria = "SIC", ...)
fregre.ppls.cv(fdataobj, y, kmax=8, lambda = 0, P = c(0, 0, 1),
criteria = "SIC", ...)
Arguments
y
Scalar response with length n
.
kmax
The number of components to include in the model.
lambda
Vector with the amounts of penalization. Default value is 0, i.e. no penalization is used.
If lambda=TRUE
the algorithm computes a sequence of lambda values.
P
If P
is a vector: P
are coefficients to define the penalty matrix object. By default P=c(0,0,1)
penalize the second derivative (curvature) or acceleration.
If P
is a matrix: P is the penalty matrix o
criteria
Type of cross-validation (CV) or Model Selection Criteria (MSC) applied. Possible values are "CV", "AIC", "AICc", "SIC".