| prab.sarestimate {prabclus} | R Documentation |
Estimates SAR model from log-abundance matrix of prab-object.
Description
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.
Usage
prab.sarestimate(abmat, prab01=NULL,sarmethod="eigen",
weightstyle="C",
quiet=TRUE, sar=TRUE,
add.lmobject=TRUE)
Arguments
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 |
Value
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 |
Author(s)
Christian Hennig christian.hennig@unibo.it https://www.unibo.it/sitoweb/christian.hennig/en
See Also
Examples
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)