create_rds_natage: Create an rds file to hold the model's full MCMC samples for...

View source: R/create-rds-natage.R

create_rds_natageR Documentation

Create an rds file to hold the model's full MCMC samples for annual numbers at age.

Description

Create an rds file to hold the model's full MCMC samples for annual numbers at age.

Usage

create_rds_natage(
  model_path = NULL,
  verbose = TRUE,
  overwrite = FALSE,
  progress_n = 500,
  first = 0,
  ...
)

Arguments

model_path

Directory name of model to be loaded

verbose

Logical. If TRUE, write more output to the console

overwrite

Logical. If TRUE, overwrite the RDS file if it exists

progress_n

Report every time this many files are processed. Consider how many posteriors there are, this should be a fairly large proportion of that (around 1/8th) or there will be too much output and it will run slow

first

Load this many of the files. If a non-positive number, load them all. Used for debugging purposes to cut down the size of the lists used

...

Arguments to pass to load_ss_files()

Details

Simplified from create_rds_file() by Andy for highest density interval manuscript, for which need to look at the full MCMC values for numbers at age for each year. Save the rds file with name as used in create_rds_file() but with with natage appended. This function does not load retrospectives and forecasts. To do that you must run this first, then run other functions to load those things and attach them to the model list

Value

base::invisible()

Examples

## Not run: 
# create_rds_natage("/srv/hake/models/2024/02-version/01-base-models/01-base/")

## End(Not run)

pacific-hake/hake-assessment documentation built on Jan. 14, 2025, 9:12 p.m.