An Application SAE HB under ZINB Model On sampel dataset"

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

STEP 1: Load package and load the data

library(saeHB.zinb)
data("dataZINB")

STEP 2: Fitting HB Model

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

STEP 3 Extract mean estimation

Small Area mean Estimates

result$Est 

Coefficient Estimation

result$coefficient  

Random effect variance estimation

result$refVar 


Try the saeHB.zinb package in your browser

Any scripts or data that you put into this service are public.

saeHB.zinb documentation built on June 16, 2022, 9:05 a.m.