fs_order | R Documentation |
Detects and inverts deprivation items for FS
fs_order(data, vec_order)
data |
a data-set of n columns with the considered items |
vec_order |
a vector of length n with TRUE or FALSE. True if the order of the variable is to be inverted, False otherwise |
A data.frame with the same item of data with inverted order for those with vec_order==TRUE
Betti, G., Gagliardi, F., Lemmi, A., & Verma, V. (2015). Comparative measures of multidimensional deprivation in the European Union. Empirical Economics, 49(3), 1071-1100.
Betti, G., Gagliardi, F., & Verma, V. (2018). Simplified Jackknife variance estimates for fuzzy measures of multidimensional poverty. International Statistical Review, 86(1), 68-86.
#Create data
data=data.frame("X"=rep(c(1,2,3,4),20), "Y"=rep(c(7,8,9,1),20))
#Crete vec_order
vec_order=c(TRUE,FALSE)
fs_order(data=data, vec_order)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.