Companies and contracting authorities at risk of being corrupt across emergencies are identified through the selection of a set of red flags computed through a procedure which exploits the time discontinuity introduced by the emergency outbreak, that is, the possibility to distinguish two time-spans, a pre-emergency period and a post-emergency period.
The approach compares, whenever possible, company and/or contracting authority behaviours after the emergency outbreak with respect to their historical behaviour and assesses the associated risk through statistical testing. Given the focus on crises, each red flag is calculated regarding contracts awarded in the relevant market(s) for the crisis at issue.
The procedure is extensible to other crisis contexts, replicable to other national contexts, and adjustable on account of different market trends across the crisis.
Compute red flags ( ind_2
)
Let us say we are interested in calculating an indicator, say, number
2. All we need to do is to load data sample mock_data_core
and supply related variables to function ind_2()
. Check out
the documentation for function ind_2()
to get a grasp on
that.
library(coresoi)
data("mock_data_core")
mock_data_core <- mock_data_core |>
tidyr::unnest(aggiudicatari, keep_empty = TRUE)
ind_2(
data = mock_data_core,
contract_value = importo_lotto,
publication_date = data_pubblicazione,
stat_unit = codice_fiscale,
test_type = "wilcoxon",
emergency_name = "coronavirus"
) |>
head(10)
#> # A tibble: 10 × 11
#> indicator_id indicator_name indicator_value aggregation_id aggregation_name
#> <dbl> <chr> <dbl> <chr> <chr>
#> 1 2 Awarded economi… 0 0000000000 MOUSAWAT
#> 2 2 Awarded economi… 1 00000000000 GO.MA. S.R.L.
#> 3 2 Awarded economi… 1 0000000000000… BDC LABORATORIES
#> 4 2 Awarded economi… 0 00000000785 ADVANCED MEDICA…
#> 5 2 Awarded economi… 0 00000004649 ADVANCED MEDICA…
#> 6 2 Awarded economi… 0 00000149997 AGFA HEALTHCARE…
#> 7 2 Awarded economi… 0 00000186762 UNIPHARMA
#> 8 2 Awarded economi… 0 00000646471 BIOCRATES LIFE …
#> 9 2 Awarded economi… 0 00038730123 OMNIA PLASTICA …
#> 10 2 Awarded economi… 0.994 00047510326 EUROSPITAL S.P.…
#> # ℹ 6 more variables: emergency_name <chr>, emergency_id <int>,
#> # country_id <dbl>, country_name <chr>, indicator_last_update <dttm>,
#> # data_last_update <dttm>
Usage tips
- To compute red flags using the package, start by loading the sample
data (
mock_data_core
) provided in the package. - Specify the relevant variables for the red flag calculation when
calling the relevant indicator function (e.g.,
ind_2()
). - Refer to the documentation for each indicator function to understand the required input variables and the expected output schema.
- The output schema provides information regarding the indicator name, indicator value, relevant geographic aggregation (if any), and the emergency context for which the red flag is calculated.
Technical support
- If users encounter any issues while using the package, they can refer to the documentation or reach out to the package maintainers via Github by opening an issue or directly to (Niccolò Salvini for for technical support).
- The maintainers can assist with questions regarding the required input variables, resolving errors, or understanding the output schema of the red flag indicators.