lingini2(Y, id = NULL, weight = NULL,
sort = NULL, Dom = NULL,
period=NULL, dataset = NULL,
var_name="lin_gini2")data.table or variable name as character, column number.data.table or variable name as character, column number.data.table or variable name as character, column number.data.table or variable name as character, column number.data.table or variable names as character vector, column numbers.data.table or variable names as character, column numbers.data.table.data.table containing the estimated Gini coefficients (in percentage) by Langel and Tille (2012) and Eurostat.data.table containing the linearized variables of the Gini coefficients (in percentage) by Langel and Tille (2012).lingini, linqsr, varpoord , vardcrospoor, vardchangespoordata(eusilc)
dati <- data.table(IDd=1:nrow(eusilc), eusilc)
# Full population
dat1 <- lingini2(Y="eqIncome", id="IDd", weight = "rb050", dataset=dati)
dat1$value
# By domains
dat2 <- lingini2(Y="eqIncome", id="IDd", weight = "rb050", Dom=c("db040"), dataset=dati)
dat2$valueRun the code above in your browser using DataLab