head.estimators.emdi: Returns the first part of predicted indicators and, if...

Description Usage Arguments Value See Also Examples

View source: R/estimators.emdi.R

Description

Returns the first part of predicted indicators and, if chosen, of MSE and CV estimators.

Usage

1
2
## S3 method for class 'estimators.emdi'
head(x, n = 6L, addrownums = NULL, ...)

Arguments

x

an object of type "estimators.emdi", representing point estimators and, if chosen, MSE and/or CV estimates for selected indicators.

n

a single integer. If positive, it determines the number of rows for the data frame. If negative, all but the n last rows of elements of the object.

addrownums

if there are no row names, create them from the row numbers.

...

arguments to be passed to or from other methods.

Value

Selected rows 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
## 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 first lines of the Gini coefficient, MSE and CV
head(estimators(emdi_model, indicator = c("Gini", "Head_Count")))

## End(Not run)

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