dataHBME {saeHB.ME}R Documentation

Sample Data for Small Area Estimation with Measurement Error using Hierarchical Bayesian Method under Normal Distribution

Description

This data generated by simulation based on Hierarchical Bayesian Method under Normal Distribution with Measurement Error by following these steps:

  1. Generate x1x_{1} ~ UNIF(0, 1), x2x_{2} ~ UNIF(1,5), x3x_{3} ~ UNIF(10,15), and x4x_{4} ~ UNIF(10,20)

  2. Generate v.x1v.x_{1} ~ Gamma(1,1) and v.x2v.x_{2} ~ Gamma(2,1)

  3. Generate x1hx_{1h} ~ N(x1x_{1}, sqrt(v.x1v.x_{1})) and x2hx_{2h} ~ N(x2x_{2}, sqrt(v.x2v.x_{2}))

  4. Generate β0\beta_{0}, β1\beta_{1}, β2\beta_{2}, β3\beta_{3}, and β4\beta_{4}

  5. Generate uu ~ N(0,1) and vv ~ 1/(Gamma(1,1))

  6. Calculate μ\mu = β0+β1x1h+β2x2h+β3x3+β4x4+u\beta_{0} + \beta_{1}*x_{1h} + \beta_{2}*x_{2h} + \beta_{3}*x_{3} + \beta_{4}*x_{4} + u

  7. Generate YY ~ N(μ\mu, sqrt(vv))

Direct estimation Y, auxiliary variables x1 x2 x3 x4, sampling variance v, and mean squared error of auxiliary variables v.x1 v.x2 are arranged in a dataframe called dataHBME.

Usage

data(dataHBME)

Format

A data frame with 30 observations on the following 8 variables.

Y

direct estimation of Y.

x1

auxiliary variable of x1.

x2

auxiliary variable of x2.

x3

auxiliary variable of x3.

x4

auxiliary variable of x4.

vardir

sampling variances of Y.

v.x1

mean squared error of x1.

v.x2

mean squared error of x2.


[Package saeHB.ME version 1.0.1 Index]