View source: R/stats_methods.R
| predict.emdi | R Documentation | 
Method predict.emdi extracts the direct estimates, the empirical
best linear unbiased or empirical best predictors for all domains from an
emdi object.
## S3 method for class 'emdi'
predict(object, ...)
object | 
 an object of type "emdi".  | 
... | 
 additional arguments that are not used in this method.  | 
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.
Data frame with domain predictors.
direct, ebp, fh
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.