"vcov"(object, ..., what=c("vcov", "corr", "fisher", "Fisher"))
"slrm"
."vcov"
for the variance-covariance matrix,
"corr"
for the correlation matrix, and
"fisher"
or "Fisher"
for the Fisher information matrix.
object
. It is a method for the
generic function vcov
. object
should be an object of class "slrm"
, typically
produced by slrm
. It represents a Poisson point process
model fitted by spatial logistic regression.
The canonical parameters of the fitted model object
are the quantities returned by coef.slrm(object)
.
The function vcov
calculates the variance-covariance matrix
for these parameters.
The argument what
provides three options:
In all three cases, the result is a square matrix.
The rows and columns of the matrix correspond to the canonical
parameters given by coef.slrm(object)
. The row and column
names of the matrix are also identical to the names in
coef.slrm(object)
.
Note that standard errors and 95% confidence intervals for
the coefficients can also be obtained using
confint(object)
or coef(summary(object))
.
Standard errors for the fitted intensity can be obtained
using predict.slrm
.
vcov
for the generic, slrm
for information about fitted models,
predict.slrm
for other kinds of calculation about the model,
confint
for confidence intervals.
X <- rpoispp(42)
fit <- slrm(X ~ x + y)
vcov(fit)
vcov(fit, what="corr")
vcov(fit, what="f")
Run the code above in your browser using DataLab