dataPanel {saeHB.panel} | R Documentation |
Sample Data for Small Area Estimation using Hierarchical Bayesian Method for Rao Yu Model when rho = 0
Description
Dataset to simulate Small Area Estimation using Hierarchical Bayesian Method for Rao-Yu Model with rho = 0 This data is generated by these following steps:
Generate random effect area
v
, random effect for area i at time point ju
, epsilon\epsilon
, variance of ydivardir
, sampling errore
, auxiliaryxdi1
andxdi2
Set coefficient
\beta_{0}=\beta_{1}=\beta_{2}=2
and\rho = -0,5
Generate random effect area
v_{i}~N(0,1)
Generate auxiliary variable
xdi1_{ij}~U(1,2)
Generate auxiliary variable
xdi2_{ij}~U(1,3)
Generate epsilon
\epsilon_{ij}
~N(0,1)
Calculate variance of ydi with
vardir_{ij}~IG(10,6)
Generate sampling error
e_{ij}~N(0,vardir_{ij})
Calculate
\mu_{ij}=\beta_{0}+\beta_{1}xdi1_{ij}+\beta_{2}xdi2_{ij}+v_{i}+\epsilon_{ij}+e_{ij}
Set
area=50
andperiod=10
Auxiliary variables
xdi1,xdi2
, direct estimationy
,area
,period
, andvardir
are combined in a dataframe calleddataPanel
Usage
dataPanel
Format
A data frame with 100 rows and 6 variables::
- ydi
Direct Estimation of y
- area
Area (domain) of the data
- period
Period (subdomain) of the data
- vardir
Sampling Variance of y
- xdi1
Auxiliary variable of xdi1
- xdi2
Auxiliary variable of xdi2