Skip to content

yajuansi-sophie/raking

Repository files navigation

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)

About

Codes to reproduce the paper on Bayes-raking

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published