Skip to contents

Fit ratio model using Gibbs sampling

Usage

fit_gibbs(
  formula,
  data,
  family,
  spatial,
  temporal = NULL,
  priors = NULL,
  iter = 2000,
  warmup = floor(iter/2),
  thin = 1,
  chains = 4,
  cores = NULL,
  seed = NULL,
  verbose = TRUE
)

Arguments

formula

A ratiod_formula object

data

Data frame

family

Model family

spatial

Spatial structure from spatial_car()

priors

Prior specification. See ratiod_priors().

iter

Total iterations

warmup

Warmup iterations

thin

Thinning interval

chains

Number of independent chains

cores

Number of cores used to run chains in parallel

seed

Random seed

verbose

Print progress

Value

A ratiod_fit object