<div dir="ltr">Dear all,<div><br></div><div style>After finishing running the model, I want to run a policy experiment, which means that I will change one of the parameter estimates (for example, turn it off to 0) and calculate the changes in, for example, the dependent variable (e.g. choice probability). </div>
<div style><br></div><div style>So what I did was: </div><div style><br></div><div style>I insert:</div><div style><br></div><div style><div>ofstream OutFile("elasticity_choice.out", ios::app);</div><div>OutFile.precision(10);</div>
<div>OutFile<<h<<" "<<j<<" "<<echoice(h,j)<<endl;</div><div>OutFile.close();</div><div><br></div><div style>and also add a line: </div><div style>ad_exit(1);</div>
<div style><br></div><div style>after calculating the objective function. The idea is that the model will run once (using the estimates) and I get the calculated values and output them into this output file called "elasticity_choice.out". </div>
<div style><br></div><div style>It seems, however, that no output file is generated after all. This is rather weird but I want to check with you and see what I am missing.</div><div style><br></div><div style>Best,</div><div style>
Hai</div><div style><br></div></div></div>