Did you perhaps neglect to review the output of
for an explanation of the function of the in clause? Stata's help and documentation should be the first stop when you need advice, as the Statalist FAQ linked to from the top of the page advises us.
The correct syntax is
Allow me to suggest that you take some time to review chapters 11-13 of the Stata User's Guide PDF included in your Stata installation and accessible from Stata's Help menu. The objective in doing the reading is not so much to master Stata as to become familiar with a wide variety of important basic techniques, so that when the time comes that you need them, you might recall their existence, if not the full syntax, and know how to find out more about them in the help files and PDF manuals.
Stata supplies exceptionally good documentation that amply repays the time spent studying it - there's just a lot of it. These sections surfacee the things you need to know to work effectively.
Code:
help in
The correct syntax is
Code:
frame results1: replace results1= r(mean) - `compar_rate' in `i' }
Stata supplies exceptionally good documentation that amply repays the time spent studying it - there's just a lot of it. These sections surfacee the things you need to know to work effectively.
Comment