simdat: simdat

Description Usage Arguments

View source: R/sa-sim-fn.R

Description

simdat Simulate all data

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
simdat(
  stanmodel,
  typesim,
  N,
  prof = prof,
  meansd = meansd,
  sderr = NULL,
  rmout = F,
  log1 = T
)

Arguments

stanmodel

Type of stan model to run. Currently only noninformative tested.

typesim

Which simulation to run. Currently, local1 - local4, ambient.

N

Number of days to simulate. If not noninformative stan, vector of 2 for days in ambient, days in local.

prof

Profile data, defaults to prof

meansd

Matrix with columns corresponding to source, type, mean, sd, defaults to meansd.

sderr

Standard deviation of error. If not noninformative stan, optional vector of 2 for error in ambient, error in local.

rmout

Whether to remove largest (outliers)

log1

Whether to use lognormal for G


kralljr/stansa documentation built on Dec. 21, 2021, 7:44 a.m.