
Spatial-lag omission is bias, spatial-error omission is inefficiency
Source:R/ledger_scan2.R
morie_spatial_omission.RdFor the two-unit swap model \(y = \rho W y + u\) the lag regressor's
covariance with the error is \(\rho/(1-\rho^2)\)
(Research.P3.Spatial.lag_regressor_correlated); for a regressor
x with error covariance Sigma the slope variances are
\(x^T\Sigma x/(x^Tx)^2\) (OLS) and \(1/(x^T\Sigma^{-1}x)\) (GLS)
(gls_more_precise); m uncorrected local tests at level
alpha reject somewhere with probability \(1-(1-\alpha)^m\)
(fwer_tendsto_one).
Examples
morie_spatial_omission(rho = 0.4, x = c(1, 2), Sigma = matrix(c(1, 0.5, 0.5, 1), 2), m = 50)
#> $lag_covariance
#> [1] 0.4761905
#>
#> $var_ols
#> [1] 0.28
#>
#> $var_gls
#> [1] 0.25
#>
#> $gls_more_precise
#> [1] TRUE
#>
#> $fwer
#> [1] 0.923055
#>
#> attr(,"theorem")
#> [1] "Research.P3.Spatial.lag_regressor_correlated"