This is either an interface for the function errorsarlm
for abundance data stored in an object of class prab
implemented for use in abundtest
, or, in case that spatial
information should be ignored, it estimates a two-way additive
unreplicated linear
model for log-abundances on factors species and region.
prab.sarestimate(abmat, prab01=NULL,sarmethod="eigen",
weightstyle="C",
quiet=TRUE, sar=TRUE,
add.lmobject=TRUE)
A list with the following components:
see above.
numeric. Estimator of the intercept.
numeric. Estimator of error standard deviation.
numeric vector. Estimator for region effects.
numeric vector. Estimator for species effects.
numeric. Governs the degree of spatial
autocorrelation. See errorsarlm
.
integer. Length of neighborhood list generated by
nb2listw
used by
errorsarlm
.
numeric. Average weight of neighbors.
if add.lmobject=TRUE
, output object of either
lm
or errorsarlm
.
object of class prab
.
presence-absence matrix of same dimensions than the
abundance matrix of prabobj
. This specifies the presences and
absences on which the presence/absence step of abundance-based tests
is based (see details). If NULL
(which is usually the only
reasonable choice), prab01
is computed in order to indicate
the nonzeroes of prabobj$prab
.
this is passed on as parameter method
to
errorsarlm
and documented there. We don't have
experience with any other choice than "eigen"
.
can take values "W", "B", "C", "U", and "S" though tests
suggest that "C" should be chosen. See nb2listw
.
this is passed on as parameter quiet
to
errorsarlm
and documented there.
logical. If TRUE
, a simultaneous autoregression
model is fitted by calling errorsarlm
. If
FALSE
, a two-way additive
unreplicated linear
model for log-abundances on factors species and region is computed
by lm
,
ignoring the spatial arrangement of the regions.
logical. If TRUE
, the whole output object
of errorsarlm
(or lm
) is given out.
Christian Hennig christian.hennig@unibo.it https://www.unibo.it/sitoweb/christian.hennig/en
errorsarlm
,
abundtest
options(digits=4)
data(siskiyou)
x <- prabinit(prabmatrix=siskiyou, neighborhood=siskiyou.nb,
distance="none")
# Not run; this needs package spdep
# prab.sarestimate(x)
prab.sarestimate(x, sar=FALSE)
Run the code above in your browser using DataLab