Is there a code which would help me to solve the system of two equations:
0 = av*normal( ln(av/debt)+(r+asigma^2/2)*t)/(asigma*sqrt(t) ) -debt*exp((-r*t)*normal(ln(av/debt)+(r+asigma^2/2)*t)/(asigma*sqrt(t))-asigma*sqrt(t))-ev
0 = av*normal( ln(av/debt)+(r+asigma^2/2)*t)/(asigma*sqrt(t))*asigma/ev-esigma for asigma and av (the remaning variables are given)
for over 100 000 observations using Stata? Thank you!
Input dataset attached.