Skip to content

Commit fc0d7d1

Browse files
Note on fitted values instead of means to treat AR components with y containing missings
1 parent 8283542 commit fc0d7d1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

toolbox/regression/LTSts.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1301,8 +1301,10 @@
13011301
end
13021302
% A similar replacement has to be done for units in y that are missing.
13031303
% Here we take the mean of the non-missing values around the missings.
1304+
% To be chcked: can we use the fitted values instead?
1305+
% likyhat(beta0,yToUseforLagged)
13041306
yToUseforLagged = fillNaNWithAdjacentMean(yToUseforLagged);
1305-
1307+
13061308
for j=1:lARp
13071309
selj=ARp(j);
13081310
Ylagged(:,j)=[yToUseforLagged(1:selj); yToUseforLagged(1:end-selj)];

0 commit comments

Comments
 (0)