Approximation of the log determinant ln∣In−rho∗W∣ of a spatial weight matrix
Approximation of the log determinant ln∣In−rho∗W∣ of a spatial weight matrix
Compute the log determinant ln∣In−rho∗W∣ of a spatial weight matrix W using either the exact approach, or using some approximations like the Chebyshev log determinant approximation or Pace and Barry approximation.
ldetflag: flag to compute the exact or approximate log-determinant (Chebychev approximation, Pace and Barry approximation). See details.
W: spatial weight matrix
rmin: minimum eigen value
rmax: maximum eigen value
Details
This method will no longer provide its own implementation and will use the already existing methods in the package spatialreg (do_ldet ).
ldetflag=0 will compute the exact log-determinant at some gridpoints, whereas ldetflag=1 will compute the Chebyshev log-determinant approximation. ldetflag=2 will compute the Barry and Pace (1999) Monte Carlo approximation of the log-determinant.
Exact log-determinant:
The exact log determinant ln∣In−rhoW∣
is evaluated on a grid from ρ=−1,…,+1. The gridpoints are then approximated by a spline function.
Chebychev approximation:
This option provides the Chebyshev log-determinant approximation as proposed by Pace and LeSage (2004). The implementation is faster than the full log-determinant method.
Returns
detval: a 2-column Matrix with gridpoints for rho from rmin, ,rmax and corresponding log-determinant
time: execution time
See Also
do_ldet for computation of log-determinants
References
Pace, R. K. and Barry, R. (1997), Quick Computation of Spatial Autoregressive Estimators, Geographical Analysis, 29 , 232--247
R. Barry and R. K. Pace (1999) A Monte Carlo Estimator of the Log Determinant of Large Sparse Matrices, Linear Algebra and its Applications, 289 , 41--54.
Pace, R. K. and LeSage, J. (2004), Chebyshev Approximation of log-determinants of spatial weight matrices, Computational Statistics and Data Analysis, 45 , 179--196.
LeSage, J. and Pace, R. K. (2009), Introduction to Spatial Econometrics, CRC Press, chapter 4