Here's an example R script that we will be referring to for the rest of the chapter:
#!/usr/bin/Rscript --vanilla ########################################################### ## ## ## nyc-sat-scores.R ## ## ## ## Author: Tony Fischetti ## ## tony.fischetti@gmail.com ## ## ## ########################################################### ## ## Aim: to use Bayesian analysis to compare NYC's 2010 ## combined SAT scores against the average of the ## rest of the country, which, according to ## FairTest.com, is 1509 ## # workspace cleanup rm(list=ls()) # options options(echo=TRUE) options(stringsAsFactors=FALSE) # libraries library(assertr) # for data checking library(runjags) # for MCMC # make sure everything is all set with JAGS ...