Learn R Programming

emdi (version 2.2.1)

predict.emdi: Predictions from emdi Objects

Description

Method predict.emdi extracts the direct estimates, the empirical best linear unbiased or empirical best predictors for all domains from an emdi object.

Usage

# S3 method for emdi
predict(object, ...)

Value

Data frame with domain predictors.

Arguments

object

an object of type "emdi".

...

additional arguments that are not used in this method.

Details

For a better selection of prediction results, it is referred to use the generic function estimators. The methods for object of class "emdi" allows to select among the indicators of interest.

See Also

direct, ebp, fh

Examples

Run this code
# \donttest{
# Example for class 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
)

predict(emdi_model)
# }

Run the code above in your browser using DataLab