TheoreticalEcology / s-jSDM

Scalable joint species distribution modeling
https://cran.r-project.org/web/packages/sjSDM/index.html
GNU General Public License v3.0
68 stars 14 forks source link

Co-occurrence matrix based on residual associations #106

Closed wevertonbio closed 1 year ago

wevertonbio commented 2 years ago

Hi,

Is there a way to get residual associations among the species (i.e, the matrix that describe co-occurrence patterns that are not explained by environmental filtering) from model?

Thanks!

MaximilianPi commented 2 years ago

Hi @WevertonBio,

Yes:

getCov(model) 
# we usually normalize the covariance matrix to the correlation matrix:
# cov2cor(getCov(model))