Skip to content

lewfish/bayesian-global-warming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bayesian-global-warming

This project is a Bayesian analysis of the rate of global warming in regions around the world, and was completed for a class on Bayesian Statistics. It contains 1) three JAGS linear regression models, 2) an R script that reads GISTEMP data, runs MCMC on the models, and plots graphs, and 3) a paper describing the results.

Install

Install R, JAGS, and Latex.

At the R prompt invoke

install.packages("ncdf", "R2jags", "ggplot2", "ggmap")

Download GISTEMP data and put it in data/ subdirectory (which you need to create).

Run

In code/, run the R script by invoking

Rscript climate.R

which will print the output of different models, and save figures to <project_root>/paper/figs/

To make the paper, go to paper/ and invoke

pdflatex document.tex
bibtex document
pdflatex document.tex
pdflatex document.tex

About

a bayesian analysis of global warming

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published