Tests residuals from regression Y on X for no spatial unit root (I(0)).
Usage
spatial_i0_test_residual(Y, X_in, distmat, emat, q)
Arguments
- Y
n x 1 response vector
- X_in
n x k design matrix (including intercept)
- distmat
n x n normalized distance matrix
- emat
q x nrep matrix of standard normal draws
- q
Number of low-frequency components
Value
List with LR, pvalue, cvalue, ha_parm, rho_grid, pvalue_mat, cvalue_mat