全部版块 我的主页
论坛 经济学论坛 三区 区域经济学
1641 0
2021-07-08

% dimensions of the problem

load w.mat;

load hp.mat;

T=16;

N=285;

W=normw(w);

y=hp(:,[4]);

x=hp(:,[5:10]);

xconstant=ones(N*T,1);

[nobs K]=size(x);

% ols estimation

results=ols(y,[xconstant x]);出错

vnames=strvcat('lnhprice','intercept','lntalgath','lnavrgdp','lnrealinvest','lnwage','lnpopdensity,''lnfisexp');

prt_reg(results,vnames,1);

sige=results.sige*((nobs-K)/nobs);

loglikols=-nobs/2*log(2*pi*sige)-1/(2*sige)*results.resid'*results.resid


二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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