setPriors.HmscRandomLevel: setPriors.HmscRandomLevel

View source: R/setPriors.HmscRandomLevel.R

setPriors.HmscRandomLevelR Documentation

setPriors.HmscRandomLevel

Description

Sets or resets priors to the Hmsc object

Usage

## 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)

Value

Modified HmscRandomLevel object


Hmsc documentation built on Aug. 11, 2022, 5:11 p.m.