dataZIB {saeHB.ZIB} | R Documentation |
Sample Data for Small Area Estimation using Hierarchical Bayesian Method under Zero-Inflated Binomial Distribution
Description
Dataset to simulate Small Area Estimation using Hierarchical Bayesian Method under Zero-Inflated Binomial distribution
This data is generated by these following steps:
Generate sampling random area effect u.Z and u.nZ with
and
. The auxilary variabels are generated by Uniform distribution with
and
. The coefficient parameters
are set as 0.
Calculate
and
Generate number of sample with
Generate
and
calculate
Calculate variance of direct estimates (vardir) with
Auxilary variables x1, x2, direct estimation
, vardir, and s are combined in a dataframe called dataZIB
Usage
data(dataZIB)
Format
A data frame with 64 observations on the following 4 variables:
- y
Direct Estimation of y
- X1
Auxiliary variable of x1
- X2
Auxiliary variable of x2
- vardir
sampling variance of y
- s
number of sample