control_charts_sof_pc_real_time {funcharts} | R Documentation |
Real-time scalar-on-function regression control charts
Description
This function is deprecated. Use regr_cc_sof_real_time
.
This function produces a list of data frames,
each of them is produced by control_charts_sof_pc
and is needed to plot control charts for monitoring in real time
a scalar quality characteristic adjusted for
by the effect of multivariate functional covariates.
Usage
control_charts_sof_pc_real_time(
mod_list,
y_test,
mfdobj_x_test,
mfdobj_x_tuning = NULL,
alpha = list(T2 = 0.0125, spe = 0.0125, y = 0.025),
limits = "standard",
seed,
nfold = NULL,
ncores = 1
)
Arguments
mod_list |
A list of lists produced by |
y_test |
A numeric vector containing the observations of the scalar response variable in the phase II monitoring data set. |
mfdobj_x_test |
A list created using
|
mfdobj_x_tuning |
A list created using
|
alpha |
|
limits |
|
seed |
Deprecated: see |
nfold |
|
ncores |
If you want parallelization, give the number of cores/threads to be used when creating objects separately for different instants. |
Value
A list of data.frame
s each
produced by control_charts_sof_pc
,
corresponding to a given instant.
See Also
sof_pc_real_time
, control_charts_sof_pc
Examples
## Not run:
library(funcharts)
data("air")
air1 <- lapply(air, function(x) x[1:8, , drop = FALSE])
air2 <- lapply(air, function(x) x[9:10, , drop = FALSE])
mfdobj_x1_list <- get_mfd_list_real_time(air1[c("CO", "temperature")],
n_basis = 15,
lambda = 1e-2,
k_seq = c(0.5, 1))
mfdobj_x2_list <- get_mfd_list_real_time(air2[c("CO", "temperature")],
n_basis = 15,
lambda = 1e-2,
k_seq = c(0.5, 1))
y1 <- rowMeans(air1$NO2)
y2 <- rowMeans(air2$NO2)
mod_list <- sof_pc_real_time(y1, mfdobj_x1_list)
cclist <- control_charts_sof_pc_real_time(
mod_list = mod_list,
y_test = y2,
mfdobj_x_test = mfdobj_x2_list)
plot_control_charts_real_time(cclist, 1)
## End(Not run)