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 or logical vector with only one TRUE value (length of the vector hdata.table or variable name as character, column number or logical vector with only one TRUE value (length of the vector has to be the same as data.table or variable name as character, column number or logical vector with only one TRUE value (length of the vector has to be the same as the column data.table or variable name as character, column number or logical vector with only one TRUE value (length of the vector hadata.table or variable names as character vector, column numbers or logical vector (length of the vdata.table or variable names as character, column numbers or logical vector (length of the vector has to be the sadata.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