Description Usage Arguments Value See Also Examples
View source: R/estimators.emdi.R
Returns the last part of predicted indicators and, if chosen, of MSE and CV estimators.
1 2 |
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 first 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. |
Selected rows of the object of type "estimators.emdi".
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 last lines of the Gini coefficient, MSE and CV
tail(estimators(emdi_model, indicator = c("Gini", "Head_Count")))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.