Hello,
I would like to take a simple example for my quest:
Suppose I generate a variable and then have a histogram on the generated
variable:
gen ab=1-b
hist ab, disc freq
Is it possible to nest the gen command in the hist command:
hist (gen ab=a-b), disc freq
This is, by command, not possible but what would be the syntax for this
purpose?
I searched for nesting in stata but could not find really what I want to do.
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/