全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 MATLAB等数学软件专版
1527 1
2019-09-01
悬赏 20 个论坛币 未解决
missing=sum(isnan(data)')';                                             % Location of Missing Values                        

sample=zeros(NT,3);                                                     % Sample of Complete Data        

sample(:,1)=ones(length(Y),1);sample(missing>0)=0;                      % Sample of Complete Data        
        
balanced_indi=repmat((1:N),T,1);sample(:,2)=balanced_indi(:);           % Index of Individuals
   
sample(:,3)=repmat((1:T),1,N)';                                         % Index of Time
   
Qadj=Q(sample(:,1)==1);                                                 % Values of Qit on the Adjuted Sample

Xadj=X(sample(:,1)==1,:);                                               % Values of Xit on the Adjuted Sample

sampleAdj=sample(sample(:,1)==1,:);                                     % Adjusted Sample

NT=sum(sample(:,1));                                                    % Total number of observations

% Centered Endogeneous Variable

y_cent=centered(Y,sample);                                   % Vector of Centered Data

% Centered Explicative Variables X(i,t)

for indic_k=1:K                                             % Loop on the number of explicative variable
      
    x_cent(:,indic_k)=centered(X(:,indic_k),sample);         % Centered Vector of X
   
end



if nargin==5
   
    disp('WARNING: Initial Condition Provided by User')
   
else                                               % Begin of the condition on initial condition provided by user

红色部分循环提示“带有下表的赋值维度不匹配”,求教解决方法。


二维码

扫码加我 拉你入群

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

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

全部回复
2019-9-1 10:43:34
样本是面板数据,N*T,因变量Y 自变量X 控制变量Q
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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