Announcement

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

  • Export margins after xtlogit using esttab

    Hi,

    I’m using estout from SSC in Stata 15.1. I'm performing a xtlogit, and would like to export only margins using esttab.


    Here is my code so far:
    Code:
    eststo clear
    
    xtset id_player id_round  
    
    eststo: xtlogit cheat                               ///
    i.id_session i. id_round, Fe          
    
    margins, dydx(*)
    
    estadd local Type_game "Game"
    estadd local Fixed "Yes"
    estimate store reg1  
    
    esttab using "$outputs\Tables\Table.tex", replace nomtitle compress label     ///
    keep(*id_round *id_session )                                                                           ///
    se stats(Type_game Fixed  N, fmt(%~#s   0 )                                                  ///
    labels ("Type game" "Individual FE" "N")) b(3) se(3) nobaselevels
    Any tips?
    Last edited by Marine Jouvin; 17 Oct 2023, 05:45.

  • #2
    See the -post- option of margins.
    Last edited by Andrew Musau; 17 Oct 2023, 05:55.

    Comment

    Working...
    X