matlab 里的model,空间面板中,这三个model都是代表的什么模型

该博客详细介绍了如何在MATLAB中处理空间面板数据,包括普通最小二乘法(OLS)估计、固定效应模型以及(稳健)LM检验,用于检验空间滞后和空间误差模型。通过对数据集da.xls和qz.xls进行操作,展示了如何进行数据预处理、模型估计和结果输出。
摘要由CSDN通过智能技术生成

clear all;

A=xlsread('C:\MATLAB7\da.xls');

W1=xlsread('C:\MATLAB7\qz.xls');

% Dataset downloaded from www.wiley.co.uk/baltagi/

% Spatial weights matrix constructed by Elhorst

%

% written by: J.Paul Elhorst summer 2008

% University of Groningen

% Department of Economics

% 9700AV Groningen

% the Netherlands

% j.p.elhorst@rug.nl

%

% REFERENCES:

% Elhorst JP (2009) Spatial Panel Data Models. In Fischer MM, Getis A (Eds.)

% Handbook of Applied Spatial Analysis, Ch. C.2. Springer: Berlin Heidelberg New York.

%

% dimensions of the problem

T=15; % number of time periods

N=30; % number of regions

% row-normalize W

W=normw(W1); % function of LeSage

y=A(:,[7]); % column number in the data matrix that corresponds to the depen

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值