Description Usage Arguments Value References See Also Examples
This function compute the EBLUP estimator for small areas (Rao, 2003) using a area level model (see references below). Either Maximum Likelihood (ML) or Restricted (REML) can be used in the estimation.
You can find more information and examples in the vignette included in the package.
1 2 |
formula |
Formula relating the response to the covariates in the fixed effects. |
varformula |
A one sided formula indicating the variable which contains thesampling variance. |
data |
A data frame containing the variables used in the model. |
Z |
Structure of the random effects. By default, the identity matrix is used. |
W |
Adjacency matrix used in the Spatial EBLUP. |
tol |
Tolerance used in the computations. |
maxiter |
Maximum number of iterations of the fitting algorithm. |
method |
Either "ML" or "REML" |
.
na.action |
Action to handle missing values. At the moment, nothing is implemented. |
EBLUP |
EBLUP estimates of the area values. |
beta |
Estimates of the coefficients of the fixed part of the model. |
sigma2u |
Estimate of the variance of the random effects. |
g1 |
Estimate of first component (G1) of the MSE. |
g2 |
Estimate of second component (G2) of the MSE. |
g3 |
Estimate of third component (G3) of the MSE. |
mse |
Estimate of the MSE. |
randeff |
Estimates of the random effects. |
varbeta |
Estimate of the variance of the coefficients of the fixed part. |
JNK Rao (2003).Small Area Estimation. John Wiley & Sons, Inc., Hoboken, New Jersey.
SEBLUP
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #Load data
data(seblup)
spam.options(eps=.0000000001)
d<-data.frame(direst=ydir1, covariate=Xpop[,2], desvar=vardir)
eblupml<-EBLUP(direst~covariate, ~desvar, d)
eblupreml<-EBLUP(direst~covariate, ~desvar, d, method="REML")
summary(eblupreml$randeff - eblupml$randeff)
plot(eblupreml$randeff , eblupml$randeff)
abline(0,1)
plot(eblupml$mse, eblupreml$mse)
abline(0,1)
#Spatial EBLUP
seblupml<-SEBLUP(direst~covariate, ~desvar, d, W=W)
seblupreml<-SEBLUP(direst~covariate, ~desvar, d, W=W, method="REML")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.