Learn R Programming

exdqlm (version 0.4.0)

exal_make_mcmc_theta_control: Build MCMC theta warmup control

Description

Returns a normalized mcmc_control$theta block for exdqlmMCMC().

Usage

exal_make_mcmc_theta_control(
  enabled = FALSE,
  freeze_burnin_iters = 0L,
  freeze_only_during_burn = TRUE,
  sparse_update_every = 1L,
  sparse_update_until_iter = 0L,
  force_first_postwarmup_update = TRUE,
  trace = TRUE
)

Value

A normalized list suitable for mcmc_control$theta.

Arguments

enabled

Logical; explicit on/off switch.

freeze_burnin_iters

Non-negative integer; number of burn-in iterations to hold the theta block fixed.

freeze_only_during_burn

Logical; if TRUE, hard freeze only applies during burn-in.

sparse_update_every

Positive integer; sparse-update period during the warmup window.

sparse_update_until_iter

Non-negative integer; last iteration where the sparse schedule is active.

force_first_postwarmup_update

Logical; force one update immediately after the hard freeze / sparse schedule ends.

trace

Logical; record diagnostics traces.