-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update data loading and posterior predictions
- Loading branch information
1 parent
384b97a
commit 6dd41b6
Showing
18 changed files
with
200 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
install.packages("groundhog", repos="https://ftp.fau.de/cran/") | ||
library("groundhog") | ||
set.groundhog.folder("./R_groundhog/") | ||
pkgs <- c("brms","viridis", "readr", "posterior", "dplyr", "ggplot2", "ggdist", | ||
"gghalves", "patchwork", "bayesplot", "tidybayes", "xtable", "ggrepel", | ||
"rnaturalearth", "rnaturalearthdata", "tidyr", "stringr", "ape") | ||
groundhog.library(pkgs, "2023-12-03", force.install=TRUE) | ||
groundhog.library('github::stan-dev/cmdstanr', "2023-08-01", force.install=TRUE) | ||
install.packages('groundhog', repos='https://ftp.fau.de/cran/') | ||
library('groundhog') | ||
set.groundhog.folder('./R_groundhog/') | ||
pkgs <- c('brms','viridis', 'readr', 'posterior', 'dplyr', 'ggplot2', 'ggdist', | ||
'gghalves', 'patchwork', 'bayesplot', 'tidybayes', 'xtable', 'ggrepel', | ||
'rnaturalearth', 'rnaturalearthdata', 'tidyr', 'stringr', 'ape', | ||
'geostan', 'geodist', 'gridExtra') | ||
groundhog.library(pkgs, '2023-04-01', force.install=TRUE) | ||
groundhog.library('github::stan-dev/cmdstanr', '2023-08-01', force.install=TRUE) | ||
|
||
source("01_DataExplorations.R") | ||
source("02_PriorDistributions.R") | ||
source("03_PriorModel.R") | ||
source('01_DataExplorations.R') | ||
source('02_PriorDistributions.R') | ||
source('03_PriorModel.R') | ||
|
||
# The models will take a long time to compile, feel free to run, or to use | ||
# our provided models via OSF. | ||
# source("04_FinalModel.R") | ||
# The models and posterior predictions will take a long time to compile, | ||
# feel free to run, or to use our provided models via OSF. | ||
# source('04_FinalModel.R') | ||
# source('05_ModelConvergence.R') | ||
# source('test_moran.R) | ||
|
||
source("05_ModelConvergence.R") | ||
source("06_BayesViz.R") | ||
source("07_utils.R") | ||
source('06_BayesViz.R') | ||
source('07_utils.R') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.