STOCfree_Stan: Stan implementation of the STOC free model

View source: R/sf_model.R

STOCfree_StanR Documentation

Stan implementation of the STOC free model

Description

Stan implementation of the STOC free model

Usage

STOCfree_Stan(
  STOCfree_data,
  n_chains = 4,
  n_iter = 1000,
  n_thin = 1,
  n_warmup = NULL,
  save_model = TRUE,
  save_data = FALSE,
  save_output = TRUE,
  save_inits = TRUE,
  out_path = "STOCfree_files"
)

Arguments

STOCfree_data

a STOC free data object

n_chains

number of MCMC chains

n_iter

number of iterations to monitor

n_thin

thinning interval for monitors

n_warmup

number of warmup iterations

save_model

if TRUE, the Stan model code is saved to 'out_path'

save_data

if TRUE, the data are saved to 'out_path' as a .RData file

save_output

if TRUE, the JAGS model output is saved to out_path in a tidy format using the tidybayes package

save_inits

if TRUE initial values are written to 'out_path' as a text file

out_path

folder where model code and output are saved. By default, a STOCfree_files folder is created in the working directory

Details

The code used is an adaptation of Damiano et al. (2017): https://github.com/luisdamiano/stancon18


AurMad/STOCfree documentation built on Sept. 13, 2022, 3:20 a.m.