Learn R Programming

saeHB.ME (version 1.0.1)

dataTMEHB: Sample Data for Small Area Estimation with Measurement Error using Hierarchical Bayesian Method under Student-t Distribution

Description

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

  1. Generate \(x_{1}\) ~ UNIF(10, 20) and \(x_{2}\) ~ UNIF(30,50)

  2. Generate \(v.x_{1}\) ~ 1/(Gamma(1,1))

  3. Generate \(x_{1h}\) ~ N(\(x_{1}\)

  4. Generate \(\beta_{0}\) = \(\beta_{1}\) = \(\beta_{2}\) = 0.5

  5. Generate \(u\) ~ N(0,1) and \(k\) ~ Gamma(10,1)

  6. Calculate \(\mu\) = \(\beta_{0} + \beta_{1}*x_{1h} + \beta_{2}*x_{2h} + u\)

  7. Generate \(Y\) ~ t(\(k\), \(\mu\))) and \(v\) = \(\sigma_{y}^{2}\)

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 dataTMEHB.

Usage

data(dataTMEHB)

Arguments

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.

vardir

sampling variances of Y.

v.x1

mean squared error of x1.