Permet d'extraire un bilan qualité à partir du fichier CSV contenant la matrice des diagnostics.
Value
Un objet de type QR_matrix
.
Details
La fonction permet d'extraire un bilan qualité à partir d'un fichier csv contenant l'ensemble des diagnostics (généralement fichier demetra_m.csv).
Ce fichier peut être obtenu en lançant le cruncher
(cruncher
ou
cruncher_and_param
) avec l'ensemble des
paramètres de base pour les paramètres à exporter et l'option
csv_layout = "vtable"
(par défaut) pour le format de sortie des
fichiers csv (option de cruncher_and_param
ou de
create_param_file
lors de la création du fichier
de paramètres).
Le résultat de cette fonction est un objet QR_matrix
qui est
une liste de trois paramètres :
le paramètre
modalities
est undata.frame
contenant un ensemble de variables sous forme catégorielle (Good, Uncertain, Bad, Severe).le paramètre
values
est undata.frame
contenant les valeurs associées aux indicateurs présents dansmodalities
(i.e. : p-valeurs, statistiques, etc.) ainsi que des variables qui n'ont pas de modalité (fréquence de la série et modèle ARIMA).le paramètre
score_formula
est initié àNULL
: il contiendra la formule utilisée pour calculer le score (si le calcul est fait).
Examples
# Chemin menant au fichier demetra_m.csv
demetra_path <- file.path(
system.file("extdata", package = "JDCruncheR"),
"WS/ws_ipi/Output/SAProcessing-1",
"demetra_m.csv"
)
# Extraire le bilan qualité à partir du fichier demetra_m.csv
QR <- extract_QR(demetra_path)
print(QR)
#> The quality report matrix has 13 observations
#> There are 18 indicators in the modalities matrix and 20 indicators in the values matrix
#>
#> The quality report matrix contains the following variables:
#> series qs_residual_sa_on_sa f_residual_sa_on_sa qs_residual_sa_on_i f_residual_sa_on_i f_residual_td_on_sa f_residual_td_on_i residuals_independency residuals_normality residuals_homoskedasticity residuals_skewness residuals_kurtosis oos_mean oos_mse m7 q q_m2 pct_outliers frequency arima_model
#>
#> The variables exclusively found in the values matrix are:
#> frequency arima_model
#>
#> No score was calculated
# Extraire les modalités de la matrice
QR$modalities
#> series qs_residual_sa_on_sa f_residual_sa_on_sa qs_residual_sa_on_i
#> 1 RF0610 Good Good Good
#> 2 RF0620 Good Good Good
#> 3 RF0811 Good Good Good
#> 4 RF0812 Good Good Good
#> 5 RF0893 Good Good Good
#> 6 RF0899 Good Good Good
#> 7 RF1011 Severe Good Severe
#> 8 RF1012 Severe Good Severe
#> 9 RF1013 Bad Good Uncertain
#> 10 RF1020 Severe Good Severe
#> 11 RF1031 Bad Good Bad
#> 12 RF1032 Good Good Good
#> 13 RF1039 Severe Good Severe
#> f_residual_sa_on_i f_residual_td_on_sa f_residual_td_on_i
#> 1 Good Bad Uncertain
#> 2 Good Good Good
#> 3 Good Severe Bad
#> 4 Good Severe Severe
#> 5 Good Good Good
#> 6 Good Bad Bad
#> 7 Good Severe Severe
#> 8 Good Severe Severe
#> 9 Good Severe Severe
#> 10 Good Severe Severe
#> 11 Good Uncertain Uncertain
#> 12 Good Severe Severe
#> 13 Good Severe Severe
#> residuals_independency residuals_normality residuals_homoskedasticity
#> 1 Good Good Good
#> 2 Good Bad Bad
#> 3 Bad Bad Bad
#> 4 Bad Good Good
#> 5 Uncertain Good Good
#> 6 Bad Good Good
#> 7 Bad Good Good
#> 8 Bad Good Good
#> 9 Bad Bad Bad
#> 10 Bad Uncertain Good
#> 11 Bad Bad Uncertain
#> 12 Bad Good Good
#> 13 Bad Bad Uncertain
#> residuals_skewness residuals_kurtosis oos_mean oos_mse m7 q q_m2
#> 1 Good Good Good Bad Good Good Good
#> 2 Bad Bad Bad Bad Good Good Good
#> 3 Bad Bad Good Uncertain Good Bad Bad
#> 4 Good Good Good Good Good Good Good
#> 5 Good Good Bad Good Good Bad Bad
#> 6 Good Good Bad Good Good Good Good
#> 7 Good Good Good Good Good Bad Bad
#> 8 Good Good Bad Good Good Bad Bad
#> 9 Bad Bad Bad Good Bad Bad Bad
#> 10 Good Good Bad Uncertain Good Good Bad
#> 11 Uncertain Uncertain Uncertain Bad Good Good Good
#> 12 Good Good Bad Good Good Bad Bad
#> 13 Uncertain Uncertain Bad Uncertain Good Good Good
#> pct_outliers
#> 1 Uncertain
#> 2 Bad
#> 3 Good
#> 4 Good
#> 5 Good
#> 6 Good
#> 7 Good
#> 8 Good
#> 9 Good
#> 10 Good
#> 11 Uncertain
#> 12 Good
#> 13 Good
# Or:
QR[["modalities"]]
#> series qs_residual_sa_on_sa f_residual_sa_on_sa qs_residual_sa_on_i
#> 1 RF0610 Good Good Good
#> 2 RF0620 Good Good Good
#> 3 RF0811 Good Good Good
#> 4 RF0812 Good Good Good
#> 5 RF0893 Good Good Good
#> 6 RF0899 Good Good Good
#> 7 RF1011 Severe Good Severe
#> 8 RF1012 Severe Good Severe
#> 9 RF1013 Bad Good Uncertain
#> 10 RF1020 Severe Good Severe
#> 11 RF1031 Bad Good Bad
#> 12 RF1032 Good Good Good
#> 13 RF1039 Severe Good Severe
#> f_residual_sa_on_i f_residual_td_on_sa f_residual_td_on_i
#> 1 Good Bad Uncertain
#> 2 Good Good Good
#> 3 Good Severe Bad
#> 4 Good Severe Severe
#> 5 Good Good Good
#> 6 Good Bad Bad
#> 7 Good Severe Severe
#> 8 Good Severe Severe
#> 9 Good Severe Severe
#> 10 Good Severe Severe
#> 11 Good Uncertain Uncertain
#> 12 Good Severe Severe
#> 13 Good Severe Severe
#> residuals_independency residuals_normality residuals_homoskedasticity
#> 1 Good Good Good
#> 2 Good Bad Bad
#> 3 Bad Bad Bad
#> 4 Bad Good Good
#> 5 Uncertain Good Good
#> 6 Bad Good Good
#> 7 Bad Good Good
#> 8 Bad Good Good
#> 9 Bad Bad Bad
#> 10 Bad Uncertain Good
#> 11 Bad Bad Uncertain
#> 12 Bad Good Good
#> 13 Bad Bad Uncertain
#> residuals_skewness residuals_kurtosis oos_mean oos_mse m7 q q_m2
#> 1 Good Good Good Bad Good Good Good
#> 2 Bad Bad Bad Bad Good Good Good
#> 3 Bad Bad Good Uncertain Good Bad Bad
#> 4 Good Good Good Good Good Good Good
#> 5 Good Good Bad Good Good Bad Bad
#> 6 Good Good Bad Good Good Good Good
#> 7 Good Good Good Good Good Bad Bad
#> 8 Good Good Bad Good Good Bad Bad
#> 9 Bad Bad Bad Good Bad Bad Bad
#> 10 Good Good Bad Uncertain Good Good Bad
#> 11 Uncertain Uncertain Uncertain Bad Good Good Good
#> 12 Good Good Bad Good Good Bad Bad
#> 13 Uncertain Uncertain Bad Uncertain Good Good Good
#> pct_outliers
#> 1 Uncertain
#> 2 Bad
#> 3 Good
#> 4 Good
#> 5 Good
#> 6 Good
#> 7 Good
#> 8 Good
#> 9 Good
#> 10 Good
#> 11 Uncertain
#> 12 Good
#> 13 Good