⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fcar2.m

📁 空间统计工具箱
💻 M
字号:
function [bmax, srds, prhighers, emax, logliks]=fcar2(x, y, d, detvalz, itersub)
%
%  [bmax, srds, prhighers, emax, logliks]=fcar2c(x, y, d, detvalz, itersub)
%
%This function computes conditional spatial autoregression (CAR or CSG). 
%
%
%INPUTS:
%
%x is a n by k matrix of independent variables. 
%
%y is a n by 1 column vector of observations on the dependent variable.
%
%d is a symmetric n by n spatial weight matrix. This function assumes d has a maximum eigenvalue of 1.
%
%detvalz is either a iter by 2 matrix containing a vector of autoregressive parameters in the first column and 
%the associated log-determinant in the second column or a iter by 4 matrix containing a vector of autoregressive
%parameters in the first column, the associated lower bound on the log-determinant in the second column, 
%the associated log-determinant in the third column, and the associated lower bound on the log-determinant in the fourth column.
%
%itersub is the number of iterations used in interpolating the sse function. As this becomes larger the results approach the exact
%ones.
%
%
%OUTPUTS:
%
%bmax is the k+1 by 1 vector of parameter estimates with the CAR regression parameter estimates as the first k elements and 
%alphamax, the global spatial dependence parameter (a scalar), as the last element.
%
%srds is the k+1 by 1 vector of signed root deviances. These have a t-ratio like interpretation. If the exact log-determinant 
%(or a very close approximation) is used, this has a standard interpretation. For less precise approximations, the srds is 
%based on likelihood dominance inference and should provide lower bounds to the exact srds.
%
%prhighers is a k+1 by 1 vector of estimates of obtaining a higher likelihood ratio under repeated sampling.
%
%emax is n by 1 column vector of residuals in the spatially transformed space.
%
%logliks is a iter by (k+2) matrix of profile log-likelihoods (first column full model, remaining columns delete-1 submodels).
%
%
%NOTES:
%
%One can square the signed root deviances to get likelihood ratios, if desired. 
%
%This function uses some of the techniques discussed in:
%
%Pace, R. Kelley, and James LeSage, 揕ikelihood Dominance Spatial Inference,

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -