I am populating a list of predicted values for every individual using regression equations.
where , Ln( predicted value ( girls))= -9.989+(2.018*Ln(ht))+(0.324*Ln(age))
I tried to populate the predicted values using the statement
"gen predvalue=0";
" predvalue= 2.718^( -9.989+(2.018*ht)+(0.324*age)) if sex==2"
However, the value of predvalue in this case, which should be closer to observed values, is very very low. For instance where observed value is close to 2.25, the predicted value is close to 0.25. The expected predicted values close would ideally be slightly higher ( 2.8- 3 etc). The low predicted values are leading to a distortion in percentage of predicted attained.
I cannot figure out the problem with my syntax