Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.

# st: AW: Goal seeker in Stata?

 From "Martin Weiss" To Subject st: AW: Goal seeker in Stata? Date Wed, 31 Mar 2010 10:02:54 +0200

```<>

You may want to look at -help while- which can help get you close to some
criterion, although you still have to program the criterion yourself,

HTH
Martin

-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Michael Hofmann
Gesendet: Mittwoch, 31. März 2010 09:57
An: statalist@hsphsun2.harvard.edu
Betreff: st: Goal seeker in Stata?

Hello everybody,

I?m  looking for something similar to the goal seeker feature in Excel. I
calculated the average income tax rate for given values of taxable income:

Average_income_tax_rate = Income_tax (taxable_income)/taxable_income

But I need the taxable income for given values of average income tax rate.
Unfortunately the relation between taxable income and income tax is not
straight forward and I had to use some if statements. Therefore I can not
simply rearrange the equation so that I have taxable income on the left
side.
A solution would be Stata just tries different values of taxable income
(using equation above) until it finds the value of taxable income, which
leads to the given average income tax rate.

Does such a command exist in Stata? Until now I didn?t find anything. Other
solutions for my problem are also very welcome.

Thanks,
Michael

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/
```