lingini2(inc, id = NULL, weight = NULL, sort = NULL, Dom = NULL,
period=NULL, dataset = NULL, na.rm = FALSE, var_name="lin_gini2")dataset is not NULL)
a character string, an integer or a logical vector
(length is the same as 'datasetdataset is not NULL) a character string,
an integer or a logical vector (length is the same as
'dataset' columdataset is not NULL) a
character string, an integer or a logical vector (length
is the same as 'datdataset
is not NULL) a character string, an integer or a
logical vectordataset is not NULL) character strings,
integers or a logical vectors (length is the same as
'dataset' column count)dataset is not NULL) character strings,
integers or a logical vectors (length is the same as
'dataset' column coundata.frame.data.frame containing the estimate(s)
the gini coeffients (in percentage) by domain, or (if
Dom is NULL) totals, using Tille definition
and Eurostat definition.data.frame containing the values of
linearized variables of the GINI coefficient (in precentage)
by domains or (if Dom is NULL) totals.lingini, varpoord,
linqsr, var_srsdata(eusilc)
dati <- data.frame(1:nrow(eusilc),eusilc)
colnames(dati)[1] <- "IDd"
dat1 <- lingini2("eqIncome","IDd",weight = "rb050",Dom=c("db040"),dataset=dati)
dat2 <- lingini2("eqIncome","IDd",weight = "rb050",dataset=dati)
dat1$value
dat2$valueRun the code above in your browser using DataLab