saeHB.zinb

We designed this package to provide function and datasets for area level of Small Area Estimation under Zero Inflated Negative Binomial Model using Hierarchical Bayesian (HB) Method. This package provides model using Univariate Zero Inflated Negative Binomial Distribution for variable of interest. The ‘rjags’ package is employed to obtain parameter estimates. Model-based estimators involves the HB estimators which include the mean, the variation of mean, and the quantile of mean. For the reference, see Rao, J.N.K & Molina (2015).

Author

Hayun , Azka Ubaidillah

Maintaner

Hayun 221810327@stis.ac.id

Installation

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

# install.packages("devtools")
devtools::install_github("hayunbuto/saeHB.zinb")

Function

Example

This is a basic example of using ZinbHB() function to make an estimate based on synthetic data in this package

```{r example} library(saeHB.zinb) ## For data without any non-sampled area data(dataZINB) # Load dataset

For data with non-sampled area use dataHNBNs

Fitting model

result <- ZinbHB(y ~ x1 + x2, data=dataZINB)


Small Area mean Estimates

```r
result$Est

Estimated model coefficient

result$coefficient

Estimated random effect variances

result$refVar

References