Package: sjSDM 1.0.6

Maximilian Pichler

sjSDM: Scalable Joint Species Distribution Modeling

A scalable and fast method for estimating joint Species Distribution Models (jSDMs) for big community data, including eDNA data. The package estimates a full (i.e. non-latent) jSDM with different response distributions (including the traditional multivariate probit model). The package allows to perform variation partitioning (VP) / ANOVA on the fitted models to separate the contribution of environmental, spatial, and biotic associations. In addition, the total R-squared can be further partitioned per species and site to reveal the internal metacommunity structure, see Leibold et al., <doi:10.1111/oik.08618>. The internal structure can then be regressed against environmental and spatial distinctiveness, richness, and traits to analyze metacommunity assembly processes. The package includes support for accounting for spatial autocorrelation and the option to fit responses using deep neural networks instead of a standard linear predictor. As described in Pichler & Hartig (2021) <doi:10.1111/2041-210X.13687>, scalability is achieved by using a Monte Carlo approximation of the joint likelihood implemented via 'PyTorch' and 'reticulate', which can be run on CPUs or GPUs.

Authors:Maximilian Pichler [aut, cre], Florian Hartig [aut], Wang Cai [ctb]

sjSDM_1.0.6.tar.gz
sjSDM_1.0.6.zip(r-4.5)sjSDM_1.0.6.zip(r-4.4)sjSDM_1.0.6.zip(r-4.3)
sjSDM_1.0.6.tgz(r-4.4-any)sjSDM_1.0.6.tgz(r-4.3-any)
sjSDM_1.0.6.tar.gz(r-4.5-noble)sjSDM_1.0.6.tar.gz(r-4.4-noble)
sjSDM_1.0.6.tgz(r-4.4-emscripten)sjSDM_1.0.6.tgz(r-4.3-emscripten)
sjSDM.pdf |sjSDM.html
sjSDM/json (API)
NEWS

# Install 'sjSDM' in R:
install.packages('sjSDM', repos = c('https://theoreticalecology.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/theoreticalecology/s-jsdm/issues

Datasets:

On CRAN:

deep-learninggpu-accelerationmachine-learningspecies-distribution-modellingspecies-interactions

7.55 score 68 stars 69 scripts 257 downloads 26 exports 83 dependencies

Last updated 9 days agofrom:b08ebad80c. Checks:OK: 5 WARNING: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 14 2024
R-4.5-winOKNov 14 2024
R-4.5-linuxOKNov 14 2024
R-4.4-winOKNov 14 2024
R-4.4-macWARNINGNov 14 2024
R-4.3-winOKNov 14 2024
R-4.3-macWARNINGNov 14 2024

Exports:AccSGDAdaBoundAdamaxbioticStructDNNgenerateSpatialEVgetCorgetCovgetSegetWeightsinstall_diagnosticinstall_sjSDMinternalStructureis_torch_availablelinearmadgradplotAssemblyEffectsRMSpropRsquaredsetWeightsSGDsimulate_SDMsjSDMsjSDM_cvsjSDM.tunesjSDMControl

Dependencies:abindbackportsbase64encbayesmbeeswarmbslibcachemcheckmateclicodetoolscolorspacecommonmarkcompositionscrayonDEoptimRdigestdoParallelfansifarverfastmapfontawesomeforeachfsggplot2ggterngluegridExtragtableherehexbinhtmltoolshttpuvisobanditeratorsjquerylibjsonlitelabelinglaterlatex2explatticelifecyclemagrittrMASSmathjaxrMatrixmemoiseMetricsmgcvmimemunsellmvtnormnlmepillarpkgconfigplyrpngpromisesprotoqgamR6rappdirsRColorBrewerRcppRcppArmadilloRcppTOMLreticulaterlangrobustbaserprojrootrstudioapisassscalesshinysourcetoolsstringistringrtensorAtibbleutf8vctrsviridisLitewithrxtable

sjSDM: Getting started with sjSDM - a scalable joint Species Distribution Model

Rendered fromsjSDM_Introduction.Rmdusingknitr::rmarkdownon Nov 14 2024.

Last update: 2024-08-02
Started: 2023-03-30

Readme and manuals

Help Manual

Help pageTopics
AccSGDAccSGD
AdaBoundAdaBound
AdamaxAdamax
Anova / Variation partitioninganova.sjSDM
biotic structurebioticStruct
butterfliesbutterflies
check modulecheck_module
check model check model and rebuild if necessarycheckModel
Return coefficients from a fitted sjSDM modelcoef.sjSDM
DiffGradDiffGrad
Non-linear model (deep neural network) of environmental responsesDNN
eucalyptseucalypts
Generate spatial eigenvectorsgenerateSpatialEV
getCorgetCor getCor.sjSDM
getCovgetCov getCov.sjSDM
getImportancegetImportance
Post hoc calculation of standard errorsgetSe
Get weightsgetWeights getWeights.sjSDM
Importance of environmental, spatial and association componentsimportance
install diagnosticinstall_diagnostic
Install sjSDM and its dependenciesinstall_sjSDM
Installation helpsjSDM-package installation_help
Plot internal metacommunity structureinternalStructure
is_torch_availableis_torch_available
Linear model of environmental responselinear
Extract negative-log-Likelihood from a fitted sjSDM modellogLik.sjSDM
madgradmadgrad
new_image functionnew_image
Coefficients plotplot.sjSDM
Plot elastic net tuningplot.sjSDM_cv
Training historyplot.sjSDM.DNN
Plot anova resultsplot.sjSDManova
Plot importanceplot.sjSDMimportance
Plot internal structureplot.sjSDMinternalStructure
Plot predictors of assembly processesplotAssemblyEffects
Internal coefficients plotplotsjSDMcoef
Predict from a fitted sjSDM modelpredict.sjSDM
Print a bioticStruct objectprint.bioticStruct
Print a DNN objectprint.DNN
Print a linear objectprint.linear
Print a fitted sjSDM modelprint.sjSDM
Print a fitted sjSDM_cv modelprint.sjSDM_cv
Print sjSDM anova objectprint.sjSDManova
Print importanceprint.sjSDMimportance
Print internal structure objectprint.sjSDMinternalStructure
Residuals for a sjSDM modelresiduals.sjSDM
RMSpropRMSprop
R-squaredRsquared
Set weightssetWeights setWeights.sjSDM
SGDSGD
Simulate joint Species Distribution Modelssimulate_SDM
Generates simulations from sjSDM modelsimulate.sjSDM
Fitting scalable joint Species Distribution Models (sjSDM)sjSDM sjSDM.tune
Cross validation of elastic net tuningsjSDM_cv
sjSDM control objectsjSDMControl
Return summary of a fitted sjSDM modelsummary.sjSDM
Return summary of a fitted sjSDM_cv modelsummary.sjSDM_cv
Summary table of sjSDM anovasummary.sjSDManova
Update and re-fit a model callupdate.sjSDM