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).
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
```{r example} library(saeHB.zinb)
data(dataZINB) # Load dataset
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
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.