repeat.sims: repeat.sims. A function to streamline simulations using JAGS...

Description Usage Arguments

View source: R/genericJAGSsim_fxn.r

Description

repeat.sims. A function to streamline simulations using JAGS in R runs jagsUI.

Usage

1
2
3
repeat.sims(SIMdata.fxn, SIMdata.params, JAGdata.fxn, PTM, JAG.initial,
  chains, thin, iter, burn, adapt, outfolder.path, out_label = "",
  JAGmodel.path, n.sims)

Arguments

SIMdata.fxn

a function to simulate your data.

SIMdata.params

parameter values passed to your data-generating function.

JAGdata.fxn

function to produce a data object to be fed to jags at minimum, needs at least 1 argument (the simulated data).

PTM

vector of parameters to monitor in jags.

JAG.initial

function/list passed to jags containing initial values or steps to produce initial values.

chains

to jagsUI.

thin

to jagsUI.

iter

to jagsUI.

burn

to jagsUI.

adapt

to jagsUI.

outfolder.path

path to folder where simulation results should be written.

JAGmodel.path

path to location of JAG model file.

out_Label

label to add to each rds file.


tlyons253/simfxns documentation built on May 17, 2019, 5:24 a.m.