Add trap if equation has leads.

NLS estimation does not work if the equation has expected variables.
var-model-with-constant
Stéphane Adjemian (Ryûk) 2021-07-15 17:36:02 +02:00
parent 4b7a0ee29e
commit 1d60c271d7
Signed by: stepan
GPG Key ID: 295C1FE89E17EB3C
1 changed files with 4 additions and 0 deletions

View File

@ -53,6 +53,10 @@ global M_ oo_ options_
islaggedvariables = ~isempty(regexp(rhs, '\w+\(-(\d+)\)', 'match')); % Do we have lags on the RHS?
if ~isempty(regexp(rhs, '\w+\(\d+\)', 'match'))
error('Cannot estimate an equation ith leads.')
end
% Update database (for auxiliaries)
data = feval([M_.fname '.dynamic_set_auxiliary_series'], data, M_.params);