Skip to content

All code used for Improving the stability of bivariate correlations using informative Bayesian priors: A Monte Carlo simulation study

License

Notifications You must be signed in to change notification settings

carldelfin/stability-of-bivariate-correlations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Improving the stability of bivariate correlations using informative Bayesian priors: a Monte Carlo simulation study

This repository contains all code used for the study Improving the stability of bivariate correlations using informative Bayesian priors: a Monte Carlo simulation study.

Roughly in the order they are used, you can find:

  • R code for JSON data generation in singularity/generate_data.R
  • Stan code for the Bayesian models in the singularity/build_dir/models/ directory
  • C++ code for the frequentist model in singularity/build_dir/src/corr.cpp (note the compilation instructions)
  • The definition file used to create the Singularity container in singularity/build_dir/bayesian_correlations.def
  • Bash scripts that run the simulations (through Singularity, so these are not accessed directly) in the singularity/build_dir/src/ directory
  • The Singularity container at https://zenodo.org/record/7857972
  • The raw simulation output at https://zenodo.org/record/7994203
  • R code relevant for processing the raw simulation output, creating tables and figures and so on in the manuscript/src/ directory
  • R session information in manuscript/output/session_info.txt

About

All code used for Improving the stability of bivariate correlations using informative Bayesian priors: A Monte Carlo simulation study

Topics

Resources

License

Stars

Watchers

Forks

Languages