Description Usage Arguments Details Value See Also Examples
Obtains numerical approximations of EB estimators of area means under the unit level model of Lyu, Berg and Hofmann when the values of auxiliary variables for population units and the model parameter estimates are available.
1 |
Xaux |
matrix or data frame containing covariates, the area code and
the variables named in |
f_q |
an object of class |
data_2p |
a two-part data object returned by |
fit |
a list of model parameter
estimates containing at least fixed effects coefficients and variance components
(named as the return value of |
fullpop |
a boolean variable indicating whether |
When Xaux
contains only the covariates of the out-of-sample units (fullpop = FALSE
),
observed response is used for the sampled units when calculating the EB estimator.
When Xaux
contains the covariates of the full population (fullpop = TRUE
),
unit-level EB prediction is used for the sampled units. This is
reasonable when the sampling fraction is extremely small in each area
(e.g., Battese, Harter and Fuller (1988)).
A data frame with the number of rows equal to the number of unique areas in Xaux
:
area
: area codes
eb
: EB estimator of area means
mse
: the One-step MSE estimator
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.