Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dóra Kocsis
dynare
Commits
c0ffcf7f
Commit
c0ffcf7f
authored
May 11, 2012
by
Johannes Pfeifer
Browse files
Fix problem with smoother where original data series was not plotted
parent
6585b8ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/dynare_estimation_1.m
View file @
c0ffcf7f
...
...
@@ -1028,18 +1028,14 @@ if (~((any(bayestopt_.pshape > 0) && options_.mh_replic) || (any(bayestopt_.psha
%%
%% Smooth observational errors...
%%
if
options_
.
noconstant
yf
=
zeros
(
n_varobs
,
gend
);
if
options_
.
prefilter
==
1
yf
=
atT
(
bayestopt_
.
mf
,:)
+
repmat
(
dataset_
.
descriptive
.
mean
'
,
1
,
gend
);
elseif
options_
.
loglinear
==
1
yf
=
atT
(
bayestopt_
.
mf
,:)
+
repmat
(
log
(
ys
(
bayestopt_
.
mfys
)),
1
,
gend
)
+
...
trend_coeff
*
[
1
:
gend
];
else
if
options_
.
prefilter
==
1
yf
=
atT
(
bayestopt_
.
mf
,:)
+
repmat
(
bayestopt_
.
mean_varobs
,
1
,
gend
);
elseif
options_
.
loglinear
==
1
yf
=
atT
(
bayestopt_
.
mf
,:)
+
repmat
(
log
(
ys
(
bayestopt_
.
mfys
)),
1
,
gend
)
+
...
trend_coeff
*
[
1
:
gend
];
else
yf
=
atT
(
bayestopt_
.
mf
,:)
+
repmat
(
ys
(
bayestopt_
.
mfys
),
1
,
gend
)
+
...
trend_coeff
*
[
1
:
gend
];
end
yf
=
atT
(
bayestopt_
.
mf
,:)
+
repmat
(
ys
(
bayestopt_
.
mfys
),
1
,
gend
)
+
...
trend_coeff
*
[
1
:
gend
];
end
if
nvn
number_of_plots_to_draw
=
0
;
...
...
@@ -1132,9 +1128,9 @@ if (~((any(bayestopt_.pshape > 0) && options_.mh_replic) || (any(bayestopt_.psha
for
i
=
1
:
nstar0
,
k
=
(
plt
-
1
)
*
nstar
+
i
;
subplot
(
nr
,
nc
,
i
);
plot
(
1
:
gend
,
yf
(
k
,:),
'-r'
,
'linewidth'
,
1
)
plot
(
1
:
gend
,
yf
(
k
,:),
'-
-
r'
,
'linewidth'
,
1
)
hold
on
plot
(
1
:
gend
,
rawdata
(:,
k
),
'-k'
,
'linewidth'
,
1
)
plot
(
1
:
gend
,
rawdata
(:,
k
),
'-
-
k'
,
'linewidth'
,
1
)
hold
off
name
=
deblank
(
options_
.
varobs
(
k
,:));
if
isempty
(
NAMES
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment