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

📄 fts.m

📁 空间统计工具箱
💻 M
字号:
function dm=fts(z, ms, rho, nnmat)
%
%This function computes the spatial lag of the variables z based on the index matrix nnmat.
%It gives a weighting directly related to the parameter rho.
%
%INPUT:
%
%The n by p matrix z represents the underlying set of variables
%
%The n by m matrix nnmat contains the indices of the neighboring observations
%
%The scalar ms represents the number of neighbors to use, and this should be greater than or equal to m.
%
%The scalar rho is a weighting parameter, where larger values lead to less decline in the weights with higher-order
%neighbors. It is 1-geometric decay rate.
%
%
%OUTPUT:
%
%The n by p matrix dm is the spatially averaged version of z. In other words, d*z where d is a spatial weight matrix.
%
%
%NOTES:
%
%This was used in:
%
%Pace, R. Kelley and Ronald Barry, O.W. Gilley, C.F. Sirmans, 
%揂 Method for Spatial-temporal Forecasting with an Application to Real Estate Prices,

⌨️ 快捷键说明

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