linarpr(Y, id = NULL,
weight = NULL,
Y_thres = NULL,
wght_thres = NULL,
sort = NULL,
Dom = NULL,
period = NULL,
dataset = NULL,
percentage = 60,
order_quant = 50,
var_name = "lin_arpr")data.table or variable name as character, column number).data.table or variable name as character, column number or logical vector).data.table or variable name as character, column number or logical vector).data.table or variable name as character, column number. Variable specified for <data.table or variable name as character, column number or logical vector. Variable specified for weightdata.table or variable name as character, column number.data.table or variable names as character vector, column numbers as numeric vecdata.table or variable names as character, column numbers as numeric vector.data.table.data.table containing the estimated value of the quintile used for at-risk-of-poverty threshold estimation.data.table containing the estimated at-risk-of-poverty threshold.data.table containing the estimated at-risk-of-poverty rate (in percentage).data.table containing the linearized variables of the at-risk-of-poverty rate (in percentage).linarpt, varpoord , vardcrospoor, vardchangespoordata(eusilc)
dati <- data.table(IDd = 1:nrow(eusilc), eusilc)
# Full population
d <- linarpr(Y="eqIncome", id="IDd", weight="rb050", Dom=NULL,
dataset=dati, percentage=60, order_quant=50)
d$value
# By domains
dd <- linarpr(Y="eqIncome", id="IDd", weight="rb050", Dom="db040",
dataset=dati, percentage=60, order_quant=50)Run the code above in your browser using DataLab