Home Forums ASDOC : Easy Publication Quality Tables in Stata Can I create two nested tables in one document with asdoc

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Nikos
    Participant
    Post count: 2

    Suppose I have two models and I want to create two different nested tables in the same document, I wonder if there is any option asdoc to do that. Thanks in advance.

    Attaullah Shah
    Keymaster
    Post count: 69

    You can use the option reset.
    Option reset causes asdoc to make a new nested table, i.e. instead of appending to the existing nested table, option reset will start a new table in the existing file

    See this example:

    * load the auto data set

    sysuse auto

    *Make a nested table where the dependent variable is price and independent variables are mpg rep78

    asdoc reg price mpg rep78, nest replace

    * Add variable headroom and then nest with existing table

    asdoc reg price mpg rep78 headroom, nest

    * Add variable weight and then nest with existing table

    asdoc reg price mpg rep78 headroom weight, nest

    Add another table of regression in the same file
    This time our dependent variable is displacement. Please note that we shall use the option reset, which will start a new regression table in the file.

    asdoc reg displacement mpg rep78, nest reset
    
    asdoc reg displacement mpg rep78 headroom, nest
    
    asdoc reg displacement mpg rep78 headroom weight, nest
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.