RhatSummary: RhatSummary - Rhat Summary function

Description Usage Arguments Value

View source: R/RhatSummary.R

Description

This function extracts the rhat values for the annual occupancy estimates for a set of species for a given region. The function loops through Bugs output files within a given location.

Usage

1
2
3
4
5
6
RhatSummary(
  indata = "../data/model_runs/",
  output_path = "../rhat_summary/",
  REGION_IN_Q = "psi.fs",
  group_run = "article_17"
)

Arguments

indata

The file path to a location containing .rdata files of the bugs outputs, one for each species

output_path

The location where the output will be saved.

REGION_IN_Q

The region for which the rhat values will be extracted. UK based occupancy model examples include, 'psi.fs', 'psi.fs.r_GB', 'psi.fs.r_ENLGAND'.

group_run

The name of the group of species that were run. This is simply used for naming the save file

Value

An .rdata file containing the rhat values for all species for all years for the region in question.


GPowney/TrendSummaries documentation built on Nov. 15, 2021, 6:14 p.m.