| fdaspc | R Documentation |
Fits PCA-based process monitoring models (Hotelling T^2 and SPE/Q
charts) to aligned functional data in the SRVF framework, with separate
models for amplitude (vertical fPCA, vertFPCA()) and phase (horizontal
fPCA, horizFPCA()). The monitoring statistics and control limits follow
Ge and Song (2013), Sec. 2.1, Eqs. (2.3)-(2.8), applied to the elastic
fPCA features. New functions are monitored with spc_monitor().
fdaspc(
warp_data,
var_exp = 0.95,
no = NA,
alpha = 0.01,
t2limit = c("standard", "book"),
id = round(length(warp_data$time)/2),
realign = TRUE
)
warp_data |
An object of class |
var_exp |
Cumulative proportion of variance used to choose the number
of components: the smallest number whose cumulative proportion reaches
|
no |
Number of components, a scalar or |
alpha |
Significance level of the control limits. Defaults to |
t2limit |
Formula of the |
id |
Index of the time point used for |
realign |
A Boolean specifying whether to compute the training
|
An object of class fdaspc, a list with
warp_data |
the |
vpca |
the amplitude model, a |
hpca |
the phase model, an |
alpha, t2limit |
the significance level and |
amp, ph |
the amplitude and phase models: number of components |
mon |
the results of the last |
Tucker, J. D. (2016). Functional statistical process control using elastic methods. Proceedings of the Joint Statistical Meetings.
Ge, Z., Song, Z. (2013). Multivariate Statistical Process Control. Springer.
## Not run:
warp <- time_warping(simu_data$f, simu_data$time)
spc <- fdaspc(warp, alpha = 0.05)
spc <- spc_monitor(spc, 1.5 * simu_data$f[, 1:3])
spc$mon$alarm
plot(spc)
plot_contrib(spc, 1)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.