asdocx: Export from Stata to Word, Excel, LaTeX & HTML Forums asdocx Forum Support to hexplot, reldist, heatplot, marginsplot, in asdocx

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

    Hello Prof Attaullah Shah
    Could you add support for other Community Contributed Graphs, created by Ben Jann?:

    reldist
    ssc install reldist , replace
    heatplot
    hexplot

    both are installed using

    ssc install heatplot , replace

    – Could you add support for the Stata graph marginsplot ?
    I suppose including the result of the margins command itself as a table into a word of excel file is helpful as well for many users but I have no clear notion on how complicated it is to code that functionality into asdocx.

    Dr. Attaullah Shah
    Keymaster
    Post count: 106

    Hello Professor Eric
    I have now added support for the following packages / graphs:
    1. heatplot
    2. hexplot
    3. marginsplot

    How to use marginsplot


    Since the marginsplot is made after the margins and regress commands, therefore, the following two lines of codes are necessary for creating this graph with asdocx.

    1. regress command should be executed as a first step.

    2. asdocx marginsplot, margins_command()

    In the second step, we need the option margins_command() with the margins command given inside the brackets. See this example

     *Load example data
    webuse nhanes2
    
    * Estimate regression
    regress bpsystol agegrp##sex
    
    * Create the margins plot
    asdocx marginsplot, margins_command(margins agegrp)
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.