Learn R Programming

emdi (version 1.1.1)

subset.estimators.emdi: Subsets an estimators.emdi object

Description

Subsets an estimators.emdi object

Usage

# S3 method for estimators.emdi
subset(x, ...)

Arguments

x

an object of type "estimators.emdi".

...

further arguments passed to or from other methods.

Value

Selected subsets of the object of type "estimators.emdi".

See Also

estimators.emdi

Examples

Run this code
# NOT RUN {
# Loading data - population and sample data
data("eusilcA_pop")
data("eusilcA_smp")

# generate emdi object with deleting missing values; here via function ebp()
emdi_model <- ebp( fixed = eqIncome ~ gender + eqsize + cash + 
self_empl + unempl_ben + age_ben + surv_ben + sick_ben + dis_ben + rent + 
fam_allow + house_allow + cap_inv + tax_adj,
pop_data = eusilcA_pop, pop_domains = "district",
smp_data = eusilcA_smp, smp_domains = "district",
na.rm = TRUE)

# Example: Choose last lines of the Gini coefficient, MSE and CV
subset(estimators(emdi_model, indicator = "Gini"), 
       Domain %in% c("Wien", "Wien Umgebung"))
# }

Run the code above in your browser using DataLab