A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/reymath99/saeHB.twofold below:

reymath99/saeHB.twofold: Small Area Estimation Under Twofold Subarea Level Model Using Hierarchical Bayesian Method

Provides several functions for area and subarea level of small area estimation under Twofold Subarea Level Model using hierarchical Bayesian (HB) method with Univariate Normal distribution for variables of interest. Some dataset simulated by a data generation are also provided. The ‘rjags’ package is employed to obtain parameter estimates using Gibbs Sampling algorithm. Model-based estimators involves the HB estimators which include the mean, the variation of mean, and the quantile. For the reference, see Rao and Molina (2015), Torabi (2014), Leyla Mohadjer et.al. (2007), and Erciulescu et al. (2018).

Reyhan Saadi, Azka Ubaidillah

Reyhan Saadi 221810557@stis.ac.id or aansum99@gmail.com

You can install the development version of saeHB.twofold from GitHub with:

# install.packages("devtools")
devtools::install_github("reymath99/saeHB.twofold")

This is a basic example of using NormalTF function to make an estimate based on sample data in this package

library(saeHB.twofold)
data(dataTwofold)
#for dataset with nonsampled subarea use dataTwofoldNS
#fitting model
model=NormalTF(y~x1+x2,vardir="vardir",area = "codearea",weight = "w",data=dataTwofold)

Extract subarea mean estimation

Extract area mean estimation

Extract coefficient estimation (\beta)

Extract estimation of subarea random effect variance (\sigma^2_u) and area random effect variance (\sigma^2_v)

Calculate relative standard error or CV

CV=(model$Est_sub$SD)/(model$Est_sub$Mean)*100
#cv summaries
summary(CV)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4