dataPanel | R Documentation |
rho = 0
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 j u
, epsilon ε, variance of ydi vardir
, sampling error e
, auxiliary xdi1
and xdi2
Set coefficient β_{0}=β_{1}=β_{2}=2 and ρ = -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 ε_{ij}~N(0,1)
Calculate variance of ydi with vardir_{ij}~IG(10,6)
Generate sampling error e_{ij}~N(0,vardir_{ij})
Calculate μ_{ij}=β_{0}+β_{1}xdi1_{ij}+β_{2}xdi2_{ij}+v_{i}+ε_{ij}+e_{ij}
Set area=50
and period=10
Auxiliary variables xdi1,xdi2
, direct estimation y
, area
, period
, and vardir
are combined in a dataframe called dataPanel
dataPanel
A data frame with 100 rows and 6 variables::
Direct Estimation of y
Area (domain) of the data
Period (subdomain) of the data
Sampling Variance of y
Auxiliary variable of xdi1
Auxiliary variable of xdi2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.