Estimates SAR model from log-abundance matrix of prab-object.
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)
abmat |
object of class |
prab01 |
presence-absence matrix of same dimensions than the
abundance matrix of |
sarmethod |
this is passed on as parameter |
weightstyle |
can take values "W", "B", "C", "U", and "S" though tests
suggest that "C" should be chosen. See |
quiet |
this is passed on as parameter |
sar |
logical. If |
add.lmobject |
logical. If |
A list with the following components:
sar |
see above. |
intercept |
numeric. Estimator of the intercept. |
sigma |
numeric. Estimator of error standard deviation. |
regeffects |
numeric vector. Estimator for region effects. |
speceffects |
numeric vector. Estimator for species effects. |
lamda |
numeric. Governs the degree of spatial
autocorrelation. See |
size |
integer. Length of neighborhood list generated by
|
nbweight |
numeric. Average weight of neighbors. |
lmobject |
if |
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)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.