anova.sjSDM {sjSDM} | R Documentation |
Anova
Description
Calculates type II anova.
Shared contributions (e.g. between space and environment) are also calculated (and divided proportionally) and can be optionally visualized via plot.sjSDManova
with add_shared=TRUE
.
The anova can get unstable for many species and few occurrences/observations. We recommend using large numbers for 'samples'.
Usage
## S3 method for class 'sjSDM'
anova(object, samples = 5000L, ...)
Arguments
object |
model of object |
samples |
Number of Monte Carlo samples |
... |
optional arguments which are passed to the calculation of the logLikelihood |
Details
Compute analysis of variance
Value
An S3 class of type 'sjSDManova' including the following components:
results |
Data frame of results. |
to_print |
Data frame, summarized results for type I anova. |
N |
Number of observations (sites). |
spatial |
Logical, spatial model or not. |
species |
individual species R2s. |
sites |
individual site R2s. |
lls |
individual site by species negative-log-likelihood values. |
Implemented S3 methods are print.sjSDManova
and plot.sjSDManova
See Also
plot.sjSDManova
, print.sjSDManova
, plotInternalStructure