/* NL example - owen ozier 2008-04-23 */ #delimit; clear; set obs 1000; set more off; gen my_x=invnorm(uniform()); gen my_y=1+0.5*my_x+invnorm(uniform()); /* linear regression with constant, to show what you would expect */ reg my_y my_x; /* working nl estimation of the same model */ nl LinearWorking @ my_y my_x, nparameters(2); /* broken nl estimation of the same model, because of missing linebreak */ nl LinearBroken @ my_y my_x, nparameters(2);