linpoormed(Y, id = NULL, weight=NULL, sort=NULL,
Dom=NULL, period=NULL, dataset = NULL,
percentage=60, order_quant=50,
var_name="lin_poormed")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, coldata.table or variable names as character, column numbers or logicaldata.table.data.table containing the estimated median income of individuals below the At Risk of Poverty Threshold.data.table containing the linearized variables of the median income below the At Risk of Poverty Threshold.linarpt, linrmpg, varpoord , vardcrospoor, vardchangespoordata(eusilc)
dati=data.table(IDd=1:nrow(eusilc),eusilc)
# Full population
d <- linpoormed(Y="eqIncome", id="IDd", weight = "rb050", Dom=NULL,
dataset=dati, percentage=60, order_quant=50)
# Domains by location of houshold
dd <- linpoormed(Y="eqIncome", id="IDd", weight="rb050", Dom="db040",
dataset=dati, percentage=60, order_quant=50)Run the code above in your browser using DataLab