Fix a bug similar to #476 in estimated_params_bounds
parent
2fbd75d11c
commit
80768beb1f
|
@ -703,7 +703,8 @@ EstimatedParamsBoundsStatement::writeOutput(ostream &output, const string &basen
|
||||||
{
|
{
|
||||||
if (symb_type == eExogenous)
|
if (symb_type == eExogenous)
|
||||||
{
|
{
|
||||||
output << "tmp1 = find((estim_params_.corrx(:,1)==" << symb_id << ")) & (estim_params_.corrx(:,2)==" << symbol_table.getTypeSpecificID(it->name2)+1 << ");" << endl;
|
output << "tmp1 = find((estim_params_.corrx(:,1)==" << symb_id << " & estim_params_.corrx(:,2)==" << symbol_table.getTypeSpecificID(it->name2)+1 << ") | "
|
||||||
|
<< "(estim_params_.corrx(:,2)==" << symb_id << " & estim_params_.corrx(:,1)==" << symbol_table.getTypeSpecificID(it->name2)+1 << "));" << endl;
|
||||||
|
|
||||||
output << "estim_params_.corrx(tmp1,4) = ";
|
output << "estim_params_.corrx(tmp1,4) = ";
|
||||||
it->low_bound->writeOutput(output);
|
it->low_bound->writeOutput(output);
|
||||||
|
@ -715,7 +716,8 @@ EstimatedParamsBoundsStatement::writeOutput(ostream &output, const string &basen
|
||||||
}
|
}
|
||||||
else if (symb_type == eEndogenous)
|
else if (symb_type == eEndogenous)
|
||||||
{
|
{
|
||||||
output << "tmp1 = find((estim_params_.corrn(:,1)==" << symb_id << ")) & (estim_params_.corrn(:,2)==" << symbol_table.getTypeSpecificID(it->name2)+1 << ";" << endl;
|
output << "tmp1 = find((estim_params_.corrn(:,1)==" << symb_id << " & estim_params_.corrn(:,2)==" << symbol_table.getTypeSpecificID(it->name2)+1 << ") | "
|
||||||
|
<< "(estim_params_.corrn(:,2)==" << symb_id << " & estim_params_.corrn(:,1)==" << symbol_table.getTypeSpecificID(it->name2)+1 << "));" << endl;
|
||||||
|
|
||||||
output << "estim_params_.corrn(tmp1,4) = ";
|
output << "estim_params_.corrn(tmp1,4) = ";
|
||||||
it->low_bound->writeOutput(output);
|
it->low_bound->writeOutput(output);
|
||||||
|
|
Loading…
Reference in New Issue