linrmpg(Y, id, weight=NULL, sort=NULL, Dom=NULL,
period=NULL, dataset = NULL, percentage=60,
order_quant=50, var_name="lin_rmpg")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 data.frame or variable names as character, column numbers or logical vector (lendata.frame.data.frame containing the estimated relative median at-risk-of-poverty gap (in percentage).data.frame containing the linearized variables of the relative median at-risk-of-poverty gap (in precentage).linarpt, linarpr, linpoormed, varpoorddata(eusilc)
dati=data.frame(1:nrow(eusilc),eusilc)
colnames(dati)[1] <- "IDd"
# Full population
d<-linrmpg(Y="eqIncome", id="IDd", weight="rb050", Dom=NULL,
dataset=dati, percentage=60, order_quant=50)
d$value
d$threshold
# By domains
dd<-linrmpg(Y="eqIncome", id="IDd", weight = "rb050", Dom="db040",
dataset=dati, percentage=60, order_quant=50)
dd$valueRun the code above in your browser using DataLab