lingini2(Y, id = NULL, weight = NULL,
sort = NULL, Dom = NULL,
period=NULL, dataset = NULL,
var_name="lin_gini2")data.frame or variable name as character, column number or logical vector with only one TRUE value (length of the vector hdata.frame 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.frame 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.frame or variable name as character, column number or logical vector with only one TRUE value (length of the vector hadata.frame or variable names as character vector, column numbers or logical vector (length of the vdata.frame or variable names as character, column numbers or logical vector (length of the vector has to be the sadata.frame.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, varpoord, linqsrdata(eusilc)
dati <- data.frame(1:nrow(eusilc),eusilc)
colnames(dati)[1] <- "IDd"
# 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