Skip to content

Code to reproduce result in Paper "Bayes-raking: Bayesian Finite Population Inference with Known Margins"

License

Notifications You must be signed in to change notification settings

BaconZhou/Bayesian-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

Code to reproduce result in Paper "Bayes-raking: Bayesian Finite Population Inference with Known Margins"

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published