[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: nesting commands

From   "Tunga Kantarci" <>
To   <>
Subject   st: nesting commands
Date   Tue, 6 May 2008 20:36:36 +0200


I would like to take a simple example for my quest:

Suppose I generate a variable and then have a histogram on the generated

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
I searched for nesting in stata but could not find really what I want to do.

*   For searches and help try:

© Copyright 1996–2022 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index