fit_hmsc_model()

fit_hmsc_model R Documentation

Fit HMSC Model

Description

Sample the MCMC process for the HMSC model.

Usage

fit_hmsc_model(
  mod_hmsc,
  n_chains = 20,
  n_samples = 10000,
  n_thin = 1,
  n_transient = 2500,
  n_parallel = 20,
  n_samples_verbose = 500
)

Arguments

mod_hmsc

An unfitted HMSC model object.

n_chains

Number of MCMC chains (default: 20).

n_samples

Number of MCMC samples (default: 10,000).

n_thin

Thinning interval for MCMC samples (default: 5).

n_transient

Number of transient iterations (default: 2,500).

n_parallel

Number of parallel chains (default: 20).

n_samples_verbose

Verbosity interval for MCMC sampling (default: 500).

Value

Returns a fitted HMSC model object.

Back to top