setPriors.Hmsc {Hmsc} | R 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 |
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