setPriors.HmscRandomLevel function

setPriors.HmscRandomLevel

setPriors.HmscRandomLevel

Sets or resets priors to the Hmsc object

## S3 method for class 'HmscRandomLevel' setPriors( rL, nu = NULL, a1 = NULL, a2 = NULL, b1 = NULL, b2 = NULL, alphapw = NULL, nfMax = NULL, nfMin = NULL, setDefault = FALSE, ... )

Arguments

  • rL: a fitted HmscRandomLevel model object
  • nu, a1, b1, a2, b2: parameters of the multiplicative gamma process shrinking prior
  • alphapw: discrete grid prior for spatial scale parameter
  • nfMax: maximum number of latent factors to be sampled
  • nfMin: minimum number of latent factors to be sampled
  • setDefault: logical indicating whether default priors should be used
  • ...: other arguments (ignored)

Returns

Modified HmscRandomLevel object

  • Maintainer: Otso Ovaskainen
  • License: GPL-3 | file LICENSE
  • Last published: 2022-08-11