knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
We designed this package to provide function and dataset 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).
Hayun , Azka Ubaidillah
Hayun 221810327@stis.ac.id
You can install the development version of saeHB.zinb from GitHub with:
# install.packages("devtools") devtools::install_github("hayunbuto/saeHB.zinb")
ZinbHB()
This function gives small area estimator under Zero Inflated Negative Binomial Model and is implemented to variable of interest (y) that assumed to be a Zero Inflated Negative Binomial Distribution. The range of data is (y >= 0)This is a basic example of using ZinbHB()
function to make an estimate based on synthetic data in this package
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
result$Est
Estimated model coefficient
result$coefficient
Estimated random effect variances
result$refVar
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.