setPriors | R Documentation |
Sets or resets priors to objects
setPriors(...)
... |
Hmsc or HmscRandolLevel object and other arguments. |
Object of same type as first input
setPriors.Hmsc, setPriors.HmscRandomLevel
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.