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:

  1. Generate random effect area v, random effect for area i at time point j u, epsilon \epsilon, variance of ydi vardir, sampling error e, auxiliary xdi1 and xdi2

    • 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 and period=10

  2. Auxiliary variables xdi1,xdi2, direct estimation y, area, period, and vardir are combined in a dataframe called dataPanel

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


[Package saeHB.panel version 0.1.1 Index]