Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1.72 KB

README.md

File metadata and controls

38 lines (25 loc) · 1.72 KB

Code to reproduce paper

Bayes-raking: Bayesian Finite Population Inference with Known Margins

layouts

  1. Data:
  • acs_simu.rds: Data used for simulation, which mimic ACS
  • lsw.rds: Data used for real data analysis. EXCLUDED IN THIS REPO
  1. Scripts:

    • utils.R some functions used in simulation.
      • loading_matrix used to generate matrix $L$, describe in section 2.1 eq(5)
      • margin_vector used to generate vector $\overrightarrow{N}_{..}$
      • bayes_sample_contingency a small wrapper to genenar a sample contingency table information for bayes raking. Used similar grammar as R package survey::rake
      • NO NEED TO READ

    a. Section 3.1

    b. Section 3.2

    c. Section 4 (Real data, require Data/lsw.rds)