setPriors: setPriors

View source: R/setPriors.R

setPriorsR Documentation

setPriors

Description

Sets or resets priors to objects

Usage

setPriors(...)

Arguments

...

Hmsc or HmscRandolLevel object and other arguments.

Value

Object of same type as first input

See Also

setPriors.Hmsc, setPriors.HmscRandomLevel

Examples

# Set priors for random level so that there is minimum of 2 latent factors and maximum of 3
rL1 = HmscRandomLevel(units=TD$studyDesign$plot)
rL1 = setPriors(rL1, nfMax=3, nfMin=2)

# Set shrinkage parameters for priors of random level
rL1 = HmscRandomLevel(units=TD$studyDesign$plot)
rL1 = setPriors(rL1, a1=10, a2=10, b1=1, b2=1)


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