knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

saeHB.panel

We designed this package to provide several functions for area level of small area estimation using Hierarchical Bayesian (HB) method. This package provides model using Rao Yu Model for variable interest.This package also provides a dataset produced by a data generation. The 'rjags' package is employed to obtain parameter estimates. Model-based estimators involves the HB estimators which include the mean and the variation of mean. For the reference, see Rao and Molina (2015) and Torabi and Shokoohi (2012).

Author

Velia Tri Marliana, Azka Ubaidillah

Maintaner

Velia Tri Marliana 221810642@stis.ac.id

Function

Installation

You can install the development version of saeHB.panel from GitHub with:

# install.packages("devtools")
devtools::install_github("Veliatrimarliana/saeHB.panel")

Example

This is a basic example:

library(saeHB.panel)
data(dataAr1)
formula = ydi ~ xdi1 + xdi2
area = max(dataAr1[, "area"])
period = max(dataAr1[,"period"])
vardir = dataAr1[,"vardir"]
result <- Raoyu.Ar1(formula, area, period, vardir, data = dataAr1)

Extract area mean estimation

result$Est

Extract coefficient estimation

result$coefficient

Extract area random effect variance

result$refVar

References



Veliatrimarliana/saeHB.panel documentation built on April 4, 2022, 11:50 a.m.