# NOT RUN {
library("data.table")
library("laeken")
data("eusilc")
dataset1 <- data.table(IDd = paste0("V", 1 : nrow(eusilc)), eusilc)
# Full population
d1 <- linarpt(Y = "eqIncome", id = "IDd",
weight = "rb050", Dom = NULL,
dataset = dataset1, percentage = 60,
order_quant = 50L)
d1$value
# }
# NOT RUN {
# By domains
d2 <- linarpt(Y = "eqIncome", id = "IDd",
weight = "rb050", Dom = "db040",
dataset = dataset1, percentage = 60,
order_quant = 50L)
d2$value
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab