computeAssociations function

computeAssociations

computeAssociations

Computes the species association matrices associated with each random level

computeAssociations(hM, start = 1, thin = 1)

Arguments

  • hM: a fitted Hmsc model object
  • start: index of first MCMC sample included
  • thin: thinning interval of posterior distribution

Returns

list of association matrices (ω\omega) corresponding to each random level in the model

Examples

# Compute the associations (residual correlations) between species from a HMSC model assoc = computeAssociations(TD$m)
  • Maintainer: Otso Ovaskainen
  • License: GPL-3 | file LICENSE
  • Last published: 2022-08-11