setPriors.Hmsc: setPriors.Hmsc

View source: R/setPriors.Hmsc.R

setPriors.HmscR Documentation

setPriors.Hmsc

Description

Sets or resets priors to the Hmsc object

Usage

## S3 method for class 'Hmsc'
setPriors(
  hM,
  V0 = NULL,
  f0 = NULL,
  mGamma = NULL,
  UGamma = NULL,
  aSigma = NULL,
  bSigma = NULL,
  nuRRR = NULL,
  a1RRR = NULL,
  b1RRR = NULL,
  a2RRR = NULL,
  b2RRR = NULL,
  rhopw = NULL,
  setDefault = FALSE,
  ...
)

Arguments

hM

a fitted Hmsc model object

V0

scale matrix in the Wishart prior distribution for the V matrix

f0

number of degrees of freedom in the Wishart prior distribution for the V matrix

mGamma

mean for the prior multivariate Gaussian distribution for Gamma parameters

UGamma

covariance matrix for the prior multivariate Gaussian distribution for Gamma parameters

aSigma

shape parameter for the prior gamma distribution for the variance parameter, only for normal & lognormal Poisson models

bSigma

rate parameter for the prior gamma distribution for the variance parameter, only for normal & lognormal Poisson models

nuRRR, a1RRR, b1RRR, a2RRR, b2RRR

parameters of the multiplicative gamma process shrinking prior for reduced rank regression

rhopw

discrete grid prior for phylogenetic signal, should be a matrix of 2 columns

setDefault

logical indicating whether default priors should be used

...

other parameters passed to the function.

Value

Modified Hmsc object


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