楼主: L-dgao
62922 166

[程序分享] Matlab空间计量工具箱及Matlab空间面板数据模型操作简介   [推广有奖]

111
修波(真实交易用户) 学生认证  发表于 2016-5-26 16:43:34
多谢楼主啊

112
zmt(真实交易用户) 发表于 2016-5-27 21:07:39
感谢楼主提供的优质资源!

113
kyle2014(未真实交易用户) 发表于 2016-7-13 22:12:49
thanks

114
onlyayy(真实交易用户) 发表于 2016-8-30 00:30:33
T=15; % number of time periods
N=28; % number of regions
% row-normalize W
W=normw(W1); % function of LeSage
y=A(:,[3]); % column number in the data matrix that corresponds to the dependent variable
x=A(:,[4,8]); % column numbers in the data matrix that correspond to the independent variables
xconstant=ones(N*T,1);
[nobs K]=size(x);
% ----------------------------------------------------------------------------------------
% ols estimation
results=ols(y,[xconstant x]);
vnames=strvcat( ‘y‘ ,‘x1‘,‘x2‘,‘x3’,‘x4’,‘x5’);
Ordinary Least-squares Estimates
R-squared      =    0.9203
Rbar-squared   =    0.9156
sigma^2        =    0.2994
Durbin-Watson  =    0.4391
Nobs, Nvars    =    420,     3
***************************************************************
Variable        Coefficient      t-statistic    t-probability
variable 1        -0.178380        -2.341471         0.019678
variable 2         0.000023         1.391715         0.164751
variable 3         1.538205         1.682588         0.093203

在走这个程序的时候不停的出现Wrong # of variable names in prt_reg -- check vnames argument
will use generic variable names
可是vnames=strvcat( ‘y‘ ,‘x1‘,‘x2‘,‘x3’,‘x4’,‘x5’);实在不知道哪里出错了
下面的变量也是用的variable而不是我设置的变量代替的
论文很着急 望好心人解说下

115
zhaoyujie(真实交易用户) 发表于 2016-9-1 22:56:29
好资料,谢谢

116
rmc(未真实交易用户) 发表于 2016-9-17 22:53:31
谢楼主分享

117
llliu78877(未真实交易用户) 发表于 2016-9-18 15:13:42

118
冰雪精灵(真实交易用户) 发表于 2016-10-3 09:58:54
赞一个!

119
yxsong(未真实交易用户) 发表于 2016-10-8 09:41:13
谢谢分享,希望可以使用

120
siluhuayu114(真实交易用户) 发表于 2016-10-11 11:43:28
很好的资料,非常感谢楼主分享!

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-2-7 23:27