This is the code that can reproduce the results in the paper: "Spatially Selected and Dependent Random Effects for Small Area Estimation with Application to Rent Burden".
Main Manuscript
Code:
paper_material.Rmd
all code used to create the plots, table, and results referenced in the paperdownload_data.R
use this file to download the data used for the paper. it will be stored indata/
nc_simulation.R
run this withn.sims=300
simulations to reproduce the empirical simulation study with 300 simulationsfitting_chains.Rmd
run this to fit the various models for the data analysis and verify the computation times
Folders:
samplers/
include the MCMC samplers for all models useddata/
includes all data used.sim_analysis_functions/
functions used to download data, set up & run simulations, and process results are included heresim_results_NC/
stores results for the North Carolina simulation study. NOTE: only partial results (4 simulations) are stored due to file size.data_analysis/
stores MCMC chains for the data analysisfigs/
png copies of the figures in the paper
Supplementary Materials
suppl_report.Rmd
a notebook to recreate the Supplemental Reportpreamble.tex
used for the supplemental reportsa_simulation.R
can be used to run a simulation study with the South Atlantic Census Division. This will be time & memory intensivesim_results_SA/
stores results for the S.Atlantic Simulation study. NOTE: only partial results (1 simulation) are stored due to file size.