Learn R Programming

spatialAtomizeR (version 0.2.4)

prepare_nimble_inputs: Prepare NIMBLE Model Inputs

Description

Prepare NIMBLE Model Inputs

Usage

prepare_nimble_inputs(
  bookkeeping,
  adjacency,
  data,
  norm_idx_x = NULL,
  pois_idx_x = NULL,
  binom_idx_x = NULL,
  norm_idx_y = NULL,
  pois_idx_y = NULL,
  binom_idx_y = NULL,
  dist_y = 2
)

Value

List containing constants, data, and inits for NIMBLE

Arguments

bookkeeping

Output from prepare_spatial_bookkeeping

adjacency

Output from prepare_adjacency_matrices

data

Original simulated data

norm_idx_x

Indices of normal-distributed X covariates

pois_idx_x

Indices of Poisson-distributed X covariates

binom_idx_x

Indices of binomial-distributed X covariates

norm_idx_y

Indices of normal-distributed Y covariates

pois_idx_y

Indices of Poisson-distributed Y covariates

binom_idx_y

Indices of binomial-distributed Y covariates

dist_y

Distribution type for outcome (1=normal, 2=poisson, 3=binomial)