linarpt(Y,
id = NULL,
weight = NULL,
sort = NULL,
Dom = NULL,
period = NULL,
dataset = NULL,
percentage = 60,
order_quant=50,
var_name="lin_arpt")
data.table
or variable name as character, column number.data.table
or variable name as character, column number.data.table
or variable name as character, column number.data.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 (in percentage).data.table
containing the linearized variables of the at-risk-of-poverty threshold (in percentage).linarpr
, incPercentile
, varpoord
, vardcrospoor
, vardchangespoor
data(eusilc)
dati <- data.table(IDd = 1:nrow(eusilc), eusilc)
# Full population
d1 <- linarpt(Y="eqIncome", id="IDd", weight = "rb050", Dom = NULL,
dataset = dati, percentage = 60, order_quant=50)
d1$value
# By domains
d2 <- linarpt(Y="eqIncome", id="IDd", weight = "rb050", Dom = "db040",
dataset = dati, percentage = 60, order_quant=50)
d2$value
Run the code above in your browser using DataLab