View source: R/stats_methods.R
predict.NER | R Documentation |
Method predict.NER
extracts the direct estimates, the empirical
best linear unbiased or empirical best predictors for all domains from an
saeTrafo object.
## S3 method for class 'NER'
predict(object, ...)
object |
an object of type "saeTrafo". |
... |
additional arguments that are not used in this method. |
Data frame with domain predictors.
saeTrafoObject
, NER_Trafo
# Examples for Predictions from saeTrafo objects
# Load Data
data("eusilcA_smp")
data("pop_area_size")
data("pop_mean")
data("pop_cov")
# Nested error regression model
NER_model <- NER_Trafo(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,
smp_domains = "district",
pop_area_size = pop_area_size,
pop_mean = pop_mean, pop_cov = pop_cov,
smp_data = eusilcA_smp)
predict(NER_model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.