saeme
(Small Area Estimation with Measurement Error)This is an R package for small area estimation when covariates subject to sampling errors.
This package is currently including function for: * Fay-Herriot with Measurement Model[1]
Install devtools
package
r
install.packages('devtools')
2. Install saeme
package
r
devtools::install_github('aminfathullah/saeme')
3. Load saeme
package
r
library(saeme)
Estimating mean body mass index
data(bmi)
#calculate SAE with measurement error
sae_me <- FHme(y = bmi$y, x = cbind(1, bmi$x), vardir = bmi$mse_y, C = cbind(0, bmi$mse_x))
sae_me
summary(sae_me)
plot(sae_me)
[1] Ybarra, L. M., & Lohr, S. L. (2008). Small area estimation when auxiliary information is measured with error. Biometrika, 919-931.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.