楼主: biewandandan
2392 0

[问答] 未定义与 'double' 类型的输入参数相对应的函数 'mean'。 [推广有奖]

  • 0关注
  • 0粉丝

高中生

55%

还不是VIP/贵宾

-

威望
0
论坛币
0 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
296 点
帖子
8
精华
0
在线时间
41 小时
注册时间
2016-10-14
最后登录
2020-3-17

楼主
biewandandan 发表于 2018-9-2 11:21:20 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
做空间计量,怎么会出现这种问题啊
未定义与 'double' 类型的输入参数相对应的函数 'mean'。

出错 sar_panel_FE (line 215)
    meanny(i)=mean(ym);

下面是程序
clear all
load weight_10.mat
load date.mat
T=19;
N=31;
W=normw(wi);
y=date(:,3);
x=date(:,4); % column numbers in the data matrix that correspond to the independent variables
for t=1:T
    t1=(t-1)*N+1;t2=t*N;
    wx(t1:t2,:)=W*x(t1:t2,:);
end
xconstant=ones(N*T,1);
[nobs K]=size(x);
% ----------------------------------------------------------------------------------------
% Spatial and time period fixed effects + spatially lagged dependent variable
info.lflag=0; % required for exact results
info.model=3;
info.fe=0; % no print intercept and spatial fixed effects
% New routines to calculate effects estimates
results=sar_panel_FE(y,x,W,T,info);
vnames=char('logcit','logp','logy');
% Print out coefficient estimates
prt_sp(results,vnames,1);
% Print out effects estimates
panel_effects_sar(results,vnames,W);
pause

二维码

扫码加我 拉你入群

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

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

关键词:double mean fixed effect coefficient Independent

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-31 23:11