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.table
containing the estimated relative median at-risk-of-poverty gap (in percentage).data.table
containing the linearized variables of the relative median at-risk-of-poverty gap (in precentage).linarpt
, linarpr
, linpoormed
, , varpoord
, vardcrospoor
, vardchangespoor
data(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$value
Run the code above in your browser using DataLab