-
Notifications
You must be signed in to change notification settings - Fork 1
/
trIrhoWinv.Rd
62 lines (60 loc) · 1.41 KB
/
trIrhoWinv.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
\name{trIrhoWinv}
\alias{trIrhoWinv}
\title{
Compute trace of (I-rho*W)^\{-1\} matrix
}
\description{
This function computes (or estimates) the trace of matrix (I-rho*W)^\{-1\},
which is often needed when computing impacts in some spatial econometrics
models.
}
\usage{
trIrhoWinv(W, rho, offset = 0, order = 20, direct = TRUE, Df = Matrix::Diagonal(nrow(W)))
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{W}{
Adjacency matrix. Usually, it is row-standardised.
}
\item{rho}{
Value of spatial autocorrelation parameter \code{rho}.
}
\item{offset}{
Number of times (I-rho*W)^\{-1\} is multiplied by W (for sdm model).
}
\item{order}{
Order of Taylor expansion used in the approximation of the trace.
}
\item{direct}{
Use direct method, i.e., matrix multiplication, etc.
}
\item{Df}{
Diagonal matrix used to compute the impacts in the Probit model
only used if direct=TRUE.
}
}
\details{
This function computes the trace of (I-rho*W)^\{-1\}, which is later used
to computed the impacts. This is an internal function.
}
\value{
Numerica value.
}
\references{
LeSage and Page (2008)
Bivand et al. (2013)
}
\author{
Virgilio Gómez-Rubio <virgilio.gomez@uclm.es>
}
%%\note{
%% ~~further notes~~
%%}
\seealso{
\code{\link{sem.inla}}, \code{\link{slm.inla}}, \code{\link{sdm.inla}}
}
%%\examples{
%%}
% Add one or more standard keywords, see file 'KEYWORDS' in the
% R documentation directory.
\keyword{math}