dyn_ols: add noprint option
parent
832558cbbe
commit
4bf73f3b05
|
@ -35,7 +35,7 @@ function ds = dyn_ols(ds, varargin)
|
|||
% You should have received a copy of the GNU General Public License
|
||||
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
global M_ oo_
|
||||
global M_ oo_ options_
|
||||
|
||||
assert(isdseries(ds), 'dyn_ols: the first argument must be a dseries');
|
||||
|
||||
|
@ -244,6 +244,7 @@ for i = 1:length(lhs)
|
|||
oo_.ols.(tagv).tstat = oo_.ols.(tagv).beta./oo_.ols.(tagv).stderr;
|
||||
|
||||
%% Print Output
|
||||
if ~options_.noprint
|
||||
title = sprintf('OLS Estimation of equation `%s`', tagv);
|
||||
if nargin == 3
|
||||
title = [title sprintf(' [%s = %s]', 'name', tagv)];
|
||||
|
@ -263,3 +264,4 @@ for i = 1:length(lhs)
|
|||
[oo_.ols.(tagv).beta oo_.ols.(tagv).tstat oo_.ols.(tagv).stderr]);
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue