Announcement

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

  • ASDOC: Dropping base level of factor variables

    Dear all users pf Statalist

    I do not find option of the command of asdoc to drop base level of factor variables(i.variable) such as binary dummy variable. I want a coefficient of 0bn.variable not to stay in the nested table.

    or Is it an only way to use option drop() that specifies the list of coefficients which are supposed to be dropped from the produced table?

    Ryo

  • #2
    I think you are using the nest option of asdoc. See the following example where I am dropping the base category from the nested regression table.

    Code:
    sysuse auto
    asdoc reg price mpg turn i.foreign, replace nest drop(0b.foreign)
    For those who are not yet familiar with asdoc, asdoc can be downloaded from SSC and can be used with almost all Stata commands. Here is a short blog post that shows how asdoc can be used with any Stata command http://fintechprofessor.com/2018/02/...basic-example/. You can also watch several YouTube videos that show the use of asdoc https://www.youtube.com/watch?v=zdI6...LwodAk2oqLYhr-

    Code:
    * For installation of the stable version 
    ssc install asdoc
    
    * For installation of the new beta version
    net install asdoc, from(http://fintechprofessor.com) replace
    help asdoc
    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
      asdoc does not really work for "complicated" regressions that have interactions with categorical variables.

      Code:
      asdoc reg belDisc i.treated c.c_polorientation i.treated#c.c_polorientation , replace nest label drop( 0b.treated) stat(r2_a) dec(4) tzok cnames(Interaction) add(Controls, Yes) abb(.)
      Attached Files
      Last edited by Steve Dee; 04 Mar 2023, 21:28.

      Comment

      Working...
      X