Skip to content

Commit

Permalink
Perry's code changes included, updated readme, adjusted author affili…
Browse files Browse the repository at this point in the history
…ation on appendices, updated acknowledgments
  • Loading branch information
Paul.Conn authored and Paul.Conn committed Jan 25, 2018
1 parent bc3b196 commit 5c89a2b
Show file tree
Hide file tree
Showing 6 changed files with 947 additions and 12 deletions.
10 changes: 9 additions & 1 deletion HierarchicalGOF/README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,24 @@ knitr::opts_chunk$set(

This package presents code and analysis used for assessment of goodness-of-fit for Bayesian hierarchical models. The package is meant to accompany the paper "A Guide to Bayesian Model Checking for Ecologists" by Paul B. Conn, Devin S. Johnson, Perry J. Williams, Sharon R. Melin, and Mevin B. Hooten. Preprint is available at [PeerJ](https://peerj.com/preprints/3390.pdf).

The easiest way to install the package makes use of the Rtools toolchain (which requires installing Rtools first). Then the package can be installed using

devtools::install_github("pconn/HierarchicalGOF/HierarchicalGOF")

on the command line.

## Spatial regression simulations

To run spatial regression simulations, one simply needs to run the script ./inst/SpatialRegression/run_Poisson_JAGS_sims.R. This will iteratively generate data and call
JAGS to run code (note you must install JAGS first; see http://mcmc-jags.sourceforge.net)

## Sea otter N-mixture example

The R code to replicate the sea otter analysis described in the manuscript is provided in Appendix C of the manuscript, which is also included in the ./inst/sea_otter directory as an R markdown file. The sea otter data, and other necessary functions for the analysis are stored in the HierarchicalGOF package.

## California sea lion example

To run the California sea lion example, the user may use the umbrella function `run_attendance_analysis.' Note this function requires use of RTools to install software from
To run the California sea lion example, the user may use the umbrella function `run_attendance_analysis.' Note this function requires use of Rtools to install software from
a related github repository (So RTools must be installed).


Expand Down
10 changes: 9 additions & 1 deletion HierarchicalGOF/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ HierarchicalGOF

This package presents code and analysis used for assessment of goodness-of-fit for Bayesian hierarchical models. The package is meant to accompany the paper "A Guide to Bayesian Model Checking for Ecologists" by Paul B. Conn, Devin S. Johnson, Perry J. Williams, Sharon R. Melin, and Mevin B. Hooten. Preprint is available at [PeerJ](https://peerj.com/preprints/3390.pdf).

The easiest way to install the package makes use of the Rtools toolchain (which requires installing Rtools first). Then the package can be installed using

devtools::install\_github("pconn/HierarchicalGOF/HierarchicalGOF")

on the command line.

Spatial regression simulations
------------------------------

Expand All @@ -12,10 +18,12 @@ To run spatial regression simulations, one simply needs to run the script ./inst
Sea otter N-mixture example
---------------------------

The R code to replicate the sea otter analysis described in the manuscript is provided in Appendix C of the manuscript, which is also included in the ./inst/sea\_otter directory as an R markdown file. The sea otter data, and other necessary functions for the analysis are stored in the HierarchicalGOF package.

California sea lion example
---------------------------

To run the California sea lion example, the user may use the umbrella function \`run\_attendance\_analysis.' Note this function requires use of RTools to install software from a related github repository (So RTools must be installed).
To run the California sea lion example, the user may use the umbrella function \`run\_attendance\_analysis.' Note this function requires use of Rtools to install software from a related github repository (So RTools must be installed).

### Disclaimer

Expand Down
Loading

0 comments on commit 5c89a2b

Please sign in to comment.