Dataset to simulate difference benchmarking of Multivariate Fay Herriot model
This data is generated base on multivariate Fay Herriot model by these following steps:
Generate explanatory variables X1 and X2
. Take μX1 = μX1 = 10, σX11=1, σX22=2, and ρx= 1/2.
Sampling error e
is generated with the following σe11 = 0.15, σe22 = 0.25, σe33 = 0.35, and ρe = 1/2.
For random effect u
, we set σu11= 0.2, σu22= 0.6, and σu33= 1.8.
For the weight we generate w1 w2 w3
by set the w1 ~ U(25,30)
, w2 ~ U(25,30)
, w3 ~ U(25,30)
Calculate direct estimation Y1 Y2 Y3
where Yi = Xβ+ui+ei
Then combine the direct estimations Y1 Y2 Y3
, explanatory variables X1 X2
, weights w1 w2 w3
, and sampling varians covarians v1 v12 v13 v2 v23 v3
in a dataframe then named as datamsaeDB
1 |
A data frame with 30 rows and 14 variables:
Direct Estimation of Y1
Direct Estimation of Y2
Direct Estimation of Y3
Auxiliary variable of X1
Auxiliary variable of X2
Known proportion of units in small areas of Y1
Known proportion of units in small areas of Y2
Known proportion of units in small areas of Y3
Sampling Variance of Y1
Sampling Covariance of Y1 and Y2
Sampling Covariance of Y1 and Y3
Sampling Variance of Y2
Sampling Covariance of Y2 and Y3
Sampling Variance of Y3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.