Fits area-level geoadditive small area estimation (SAE)
models by extending the Fay-Herriot area-level model with linear,
nonlinear, and spatial effects. The Fay-Herriot model is described by
Fay and Herriot (1979)
geoaddSAE2 provides functions for fitting area-level Geoadditive Small Area Estimation (SAE) models. The Geoadditive SAE model extends the classical Fay-Herriot model by incorporating nonlinear covariate effects and spatial variation.
Amalyah Rizky Khairunnisa Sutarto, Novi Hidayat Pusponegoro
Amalyah Rizky Khairunnisa Sutarto [email protected]
You can install the released version of geoaddSAE2 from CRAN or find my github repository Github
install.packages("remotes")
remotes::install_github("amalyahrizky04/geoaddSAE2")
The following example illustrates the basic use of geosae().
#Load the library
library(geoaddSAE2)
#Load the dataset
data(simulated_sae)
#Estimate geoadditive SAE only
fit <- geosae(
data = simulated_sae,
formula = y ~ x1 + x2,
vardir = vardir,
nonlinear = "x3",
knots = c("x3" = 10),
spatial = c("lat", "lon"),
B = 10,
seed = 1
)
#Estimate geoadditive SAE and compare with Fay-Herriot and Spatial Fay-Herriot
fit <- geosae(
data = simulated_sae,
formula = y ~ x1 + x2,
vardir = vardir,
nonlinear = "x3",
knots = c("x3" = 10),
spatial = c("lat", "lon"),
compare = TRUE,
B = 10,
seed = 1
)
print(fit)
summary(fit)