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

Description Usage Arguments Value See Also Examples

View source: R/estimators.emdi.R

Description

Subsets an estimators.emdi object

Usage

1
2
## S3 method for class '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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
## 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"))

## End(Not run)

akreutzmann/fayherriot documentation built on Aug. 19, 2019, 12:22 p.m.