data(eusilc)
dati <- data.table(IDd = 1:nrow(eusilc), eusilc)
dati$pl085 <- 12*trunc(runif(nrow(dati),0,2))
dati$month_at_work <- 12*trunc(runif(nrow(dati),0,2))
# Full population
d <- linarr(Y="eqIncome", Y_den="eqIncome", id="IDd",
age="age", pl085="pl085", month_at_work="month_at_work",
weight="rb050", Dom=NULL, dataset=dati, order_quant=50)
d$value
# By domains
dd <- linarr(Y="eqIncome", Y_den="eqIncome", id="IDd",
age="age", pl085="pl085", month_at_work="month_at_work",
weight="rb050", Dom="db040", dataset=dati, order_quant=50)
dd
Run the code above in your browser using DataLab