The input is a time by countries dataset where all countries contributing to the average must be present. Indicators of type 'low is better' are transformed (highestRef - Y), thus the distance from the maximum value for each original observation is calculated.
ms_pattern_ori(myTB, timeName = "time", typeIn = c("highBest", "lowBest")[1])
the type of pattern
a dataset (tibble) for an indicator, time by countries. The first and last time are respectively the first and last rows of the dataset, which must be time sorted.
a string with name of the time variable
the type of indicator considered 'highBest' (default) or 'lowBest'
This is the reference implementation as described by the Eurofound report "Monitoring convergence in the European Union Upward convergence in the EU: Concepts, measurements and indicators", 2018.