Description Usage Arguments Details Value Author(s) References See Also
saemodel
is the workhorse function to set up a model (i.e., an instance of the "saemodel"
class). It is the starting point of every model fitting exercise. Once a model has been initilized/ set up, we consider estimating its parameter.
1 2 3 4 5 6 7 8 |
formula |
a two-sided linear formula object describing the fixed-effects part, with the response on the RHS of the ~ operator and the terms or regressors, separated by + operators, on the LHS of the formula. |
area |
a one-sided formula object. A ~ operator followed by only one single term defining the area-specific random-effect part |
data |
data.frame |
type |
either "a" or "b" refering to J.N.K. Rao's definition of model type A (area-level model) or B (unit-level model); default is |
na.omit |
a logical indicating whether |
x |
an object of the class |
object |
an object of the class |
... |
not used |
The step of setting up a SAE model is the starting point of any (robust) SAE modeling exercise. (Use the makedata to generate a synthetic dataset; see also, below). Here, we have to define the fixed-effects- and random-effects part of the model, and to tell R
what data it shall use.
Once a model has been initilized/ set up, we consider estimating its parameter; see fitsaemodel
.
Instance of the S3 class "saemodel"
.
Tobias Schoch
Rao, J.N.K. (2003): Small Area Estimation, New York: John Wiley and Sons.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.