ms_pattern_ori: Find patterns for all countries

View source: R/ms_pattern_ori.R

ms_pattern_oriR Documentation

Find patterns for all countries

Description

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.

Usage

ms_pattern_ori(myTB, timeName = "time", typeIn = c("highBest", "lowBest")[1])

Arguments

myTB

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.

timeName

a string with name of the time variable

typeIn

the type of indicator considered 'highBest' (default) or 'lowBest'

Details

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.

Value

the type of pattern

References

https://unimi2013-my.sharepoint.com/:u:/g/personal/federico_stefanini_unimi_it/EW0cVSIgbtZAvLPNbqcxdX8Bfn5VGSRHfAH88hQwc_RIEQ?e=MgtSZu


convergEU documentation built on March 7, 2023, 7:22 p.m.