Learn R Programming

msaeRB (version 0.2.1)

datamsaeRBns: Sample Data for Multivariate Non Sampled Area in Small Area Estimation with Ratio Benchmarking

Description

Dataset to simulate ratio benchmarking of Multivariate non sampled area in Fay-Herriot model

This data is generated based on multivariate Fay-Herriot model by these following steps:

  1. Generate explanatory variables X1 and X2. X1 ~ N(10, 1) and X2 ~ U(9.5, 10.5). Cluster is generated discrete uniform distribution with a = 1 and b = 2. Sampling error e is generated with the following \(\sigma_{e11}\) = 0.01, \(\sigma_{e22}\) = 0.02, \(\sigma_{e33}\) = 0.03, and \(\rho_{e}\) = 1/2. For random effect u, we set \(\sigma_{u11}\)= 0.02, \(\sigma_{u22}\)= 0.03, and \(\sigma_{u33}\)= 0.04. For the weight, we generate w1, w2, w3 by set w1, w2, w3 ~ U(10, 20) Set beta, \(\beta01\) = 10, \(\beta02\) = 8, \(\beta03\) = 6, \(\beta11\) = -0.3, \(\beta12\) = 0.2, \(\beta13\) = 0.4, \(\beta21\) = 0.5, \(\beta22\) = -0.1, and \(\beta23\) = -0.2. Calculate direct estimation Y1 Y2 Y3 where \(Y_{i}\) = \(X * \beta + u_{i} + e_{i}\)

  2. Then combine the direct estimations Y1 Y2 Y3, explanatory variables X1 X2, weight w1 w2 w3, and sampling varians covarians v1 v12 v13 v2 v23 v3 in a dataframe then named as datamsaeRB

Usage

datamsaeRBns

Arguments

Format

A data frame with 30 rows and 17 variables:

Y1

Direct Estimation of Y1

Y2

Direct Estimation of Y2

Y3

Direct Estimation of Y3

X1

Auxiliary variable of X1

X2

Auxiliary variable of X2

w1

Known proportion of units in small areas of Y1

w2

Known proportion of units in small areas of Y2

w3

Known proportion of units in small areas of Y3

v1

Sampling Variance of Y1

v12

Sampling Covariance of Y1 and Y2

v13

Sampling Covariance of Y1 and Y3

v2

Sampling Variance of Y2

v23

Sampling Covariance of Y2 and Y3

v3

Sampling Variance of Y3

c1

Cluster for Y1

c2

Cluster for Y2

c3

Cluster for Y3