Announcement

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

  • asdocx not working for weighted regressions

    Hello

    I tried to run a regression of the type:

    asdocx reg change_e_women_apparel_pc pc_income_1 age_female_3 [pw=finlwt21_3] , robust nested

    I got the following error:

    pweights not allowed

    Is there a way to use pweights with asdocx?

  • #2
    Dear Simone please update asdocx using the command:
    Code:
    asdocx_update
    After the update, the pweights should work. Here is a working example
    Code:
      sysuse auto
    
    asdocx reg price mpg rep78 [pw=trunk], robust nested replace
    asdocx reg price mpg length  [pw=trunk], robust nested
    
    
                              Table: Regression results
      0 |1                                        2                   3 
    ----+-----------------------------------------------------------------------------
      1 |                                       (1)                 (2) 
      2 |Variables                            price               price 
    ----+-----------------------------------------------------------------------------
      3 |mpg                            -281.036***           -202.891* 
      4 |                                  (66.214)           (110.335) 
      5 |rep78                            643.716**                     
      6 |                                 (319.172)                     
      7 |length                                                  16.211 
      8 |                                                      (23.124) 
      9 |Intercept                      9963.188***            7434.157 
     10 |                                (1692.352)          (6431.337) 
     11 |Observations                            69                  74 
     12 |R²                                   0.241               0.225 
    ----------------------------------------------------------------------------------
    Notes:  Robust standard errors are in parentheses. *** p<.01, ** p<.05, * p<.1
    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


    • #3
      Thank you, that worked perfectly!!

      Comment

      Working...
      X