prep_for_nimble: Create data list for NIMBLE analysis

Description Usage Arguments Author(s)

View source: R/prep_for_nimble_2.R

Description

Create a named list with data structures necessary to run the MCMC in NIMBLE

Usage

1
2
3
4
5
6
7
prep_for_nimble(
  x,
  timeframe,
  model.cuts = c(5, 10),
  max.factor = 3,
  debug = FALSE
)

Arguments

x

Data containing the Steller sea lion counts and sites

timeframe

A 2-vector containing the start and years for the modeling effort

model.cuts

A 2-vector specifying the numbers of positive counts necessary for each model type. E.g., model.cuts=c(5,10) implies that a constant model (over years) is used for sites with <=5 positive counts, a linear model is used for the number of positive counts in (5, 10], and a low-rank Gaussian process is used for the number of positive counts >10.

max.factor

Maximum value for imputed counts calculated as max.factor * max(counts). Currently this is not implemented, so, it is ignored

debug

Logical. Should debug mode be entered. Probably just for Devin to use.

Author(s)

Devin S. Johnson


dsjohnson/agTrendNimble documentation built on Jan. 26, 2021, 12:30 a.m.