Compute One-shot opportunistic companies over the crisis indicator
Source:R/07-os-opportunistic-company.R
ind_7.Rd
The indicator focuses on companies that after the emergency outbreak win one or more public contracts, without winning in the years before the emergency outbreak (e.g., in the preceding five years), with reference to contracts belonging to relevant economic market.
Motivation
The red flag considers at risk those companies that show a "one-shot opportunistic behaviour", that is, companies that after the emergency outbreak have been awarded one or more public contracts but have not shown any competitive power in the previous year(s).
Arguments
- data
a dataframe containing the data to use for computing the indicator.
- final_award_date
name of the variable in
data
containing award notice date for each contract.- emergency_name
string specifying the name of the emergency to consider. Examples could include "Coronavirus" or "Terremoto Centro Italia 2016-2017".
- stat_unit
name of the variable in
data
containing the target unit ID (in this case, company).- years_before
how many years before the contract date we need to look for the presence of awards to a specific company.
- ...
other parameters to pass to
generate_indicator_schema()
, such ascountry_name
(default: Italy).
Value
indicator schema as from generate_indicator_schema()
.
Examples
if (FALSE) {
if (interactive()) {
mock_data_core <- mock_data_core |>
tidyr::unnest(aggiudicatari, keep_empty = TRUE)
ind_7(
data = mock_data_core,
final_award_date = data_aggiudicazione_definitiva,
stat_unit = codice_fiscale,
emergency_name = "coronavirus",
years_before = 1
)
}
}