全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件
4271 0
2019-07-30
是我导入的矩阵格式有误吗?实在是太困惑了。。。

下附代码:
A=load('Service.mat');
W1=load('table.mat');
T=10; % number of time periods
N=43; % 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,5,6,7,8]); % column numbers in the data matrix that correspond to the independent variables

错误使用 sum
数据类型无效。第一个参数必须为数值或逻辑值。


出错 normw (line 33)
  nterm = sum(W, n);


出错 demopanelscompare (line 43)
W=normw(W1); % function of LeSage

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群