Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Asdoc Query

    Hey I have two small questions

    1) How to end a nested table and start a new one?
    2) How to export Adjusted R squared. I tried statistic(a_r2) but it did not export it in the final regression tables

    Code:
    asdoc reghdfe p_m ntc_change l.p_m did ///
    l.ln_a l.l  if list==1, ///
    absorb(cc industry_year_fe) add(Firm FE, Y, Industry X Year FE, Y, Controls, Y) ///
    nest append save($results/Regression_results.doc)

    Thanks

  • #2
    As per the FAQ, you should mention that reghdfe is from SSC.

    To answer your question, let me use the auto dataset as an example.

    * Report Adjusted R2
    Since the adjusted R2 is given in the e(r2_a) macro, you need to use the stat(r2_a) option, not stat(a_r2)

    * To start a new table within the same file, you need to use the reset option. See the following examples

    Code:
    sysuse auto
    asdoc reghdfe price weight length, absorb(rep78) nest add(Firm FE, Y, Industry X Year FE, Y, Controls, Y) stat(r2_a)
    asdoc reghdfe price weight , absorb(rep78) nest add(Firm FE, Y, Industry X Year FE, Y, Controls, Y) stat(r2_a)
    
    * Start a new table
    asdoc reghdfe price weight length, absorb(rep78) nest add(Firm FE, Y, Industry X Year FE, Y, Controls, Y) stat(r2_a) reset
    Click image for larger version

Name:	Capture.JPG
Views:	1
Size:	45.0 KB
ID:	1523312

    Regards
    --------------------------------------------------
    Attaullah Shah, PhD.
    Professor of Finance, Institute of Management Sciences Peshawar, Pakistan
    FinTechProfessor.com
    https://asdocx.com
    Check out my asdoc program, which sends outputs to MS Word.
    For more flexibility, consider using asdocx which can send Stata outputs to MS Word, Excel, LaTeX, or HTML.

    Comment

    Working...
    X