ifisfield(options_ident,'diffuse_filter')%set lik_init and options_
options_ident.lik_init=3;%overwrites any other lik_init set
options_.diffuse_filter=options_ident.diffuse_filter;%make options_ inherit diffuse filter; will overwrite any conflicting lik_init in dynare_estimation_init
else
ifoptions_.diffuse_filter==1%warning if estimation with diffuse filter was done, but not passed
warning('IDENTIFICATION:: Previously the diffuse_filter option was used, but it was not passed to the identification command. This may result in problems if your model contains unit roots.')
end
ifisfield(options_ident,'lik_init')
ifoptions_ident.lik_init==3%user specified diffuse filter using the lik_init option
options_ident.analytic_derivation=0;%diffuse filter not compatible with analytic derivation