- mod
A list obtained as output from sof_pc
,
i.e. a fitted scalar-on-function linear regression model.
- y_test
A numeric vector containing the observations
of the scalar response variable
in the phase II data set.
- mfdobj_x_test
An object of class mfd
containing
the phase II data set of the functional covariates observations.
- mfdobj_x_tuning
An object of class mfd
containing
the tuning set of the multivariate functional data, used to estimate the
T2 and SPE control chart limits.
If NULL, the training data, i.e. the data used to fit the MFPCA model,
are also used as the tuning data set, i.e. tuning_data=pca$data
.
Default is NULL.
- alpha
A named list with three elements, named T2
, spe
,
and y
,
respectively, each containing
the desired Type I error probability of the corresponding control chart
(T2
corresponds to the T2 control chart,
spe
corresponds to the SPE control chart,
y
corresponds to the scalar regression control chart).
Note that at the moment you have to take into account manually
the family-wise error rate and adjust
the two values accordingly. See Capezza et al. (2020)
for additional details. Default value is
list(T2 = 0.0125, spe = 0.0125, y = 0.025)
.
- limits
A character value.
If "standard", it estimates the control limits on the tuning
data set. If "cv", the function calculates the control limits only on the
training data using cross-validation
using calculate_cv_limits
. Default is "standard".
- seed
If limits=="cv"
,
since the split in the k groups is random,
you can fix a seed to ensure reproducibility.
Deprecated: use set.seed()
before calling
the function for reproducibility.
- nfold
If limits=="cv"
, this gives the number of groups k
used for k-fold cross-validation.
If it is equal to the number of observations in the training data set,
then we have
leave-one-out cross-validation.
Otherwise, this argument is ignored.
- ncores
If limits=="cv"
, if you want perform the analysis
in the k groups in parallel,
give the number of cores/threads.
Otherwise, this argument is ignored.