Announcement

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

  • Adding FE row in estab for Latex for regression

    I would like to add FE as Yes in following code of esttab for Latex as village is applied as Fixed Effect, and could anyone suggest ?
    Code:
    est clear 
    eststo: regress  credit_score  $dmo i.vill_name, vce(cluster vill_name)
    
    esttab using "$cb\reg_predit_credit_score.tex", replace /// 
    keep($dmo)  stats(N r2 , fmt(0 3)  labels("Observations" "\(R^{2}\)")) ///
     b(3) se(3) mtitle("Credit score") label star(* 0.10 ** 0.05 *** 0.01) /// 
     booktabs nonotes

  • #2
    Duplicate post. If interested, see https://www.statalist.org/forums/for...=1707461862751.

    Comment


    • #3
      Thanks, Andrew Musau
      I'm trying to make logistic regression :
      Code:
       logistic treatvar_1_vs_2 hhppi_score
      , how do I export this result into Latex table , and want to label treatvar_1_vs_2 as treatment Vs Control and hhppi_score as PPI score , and want to keep R2 and Constant as well in the tabel.

      Comment


      • #4
        Andrew Musau here is my code ,
        Code:
        est clear
        eststo: logistic treatvar_1_vs_2 hhppi_score  
        ereturn list
        esttab using "$tex1_2\indeff_cont\log_psm_gp1_2.tex", replace ///
        keep (hhppi_score) b(4) se(4) label  booktabs  alignment(p{1.1 cm})   ///
        stats(N r2_p, fmt(0 4) labels("Observations" "\(R^{2}\)")) ///
        mtitles("\specialcell{RT Vs. CT}") ///
         cons star(* 0.10 ** 0.05 *** 0.01)  nonotes
        The attached is the output in Latex , but want to drop
        Code:
        treatvar_1_vs_2
        in row of table, and want to show constant as well.
        Attached Files

        Comment


        • #5
          .

          Comment


          • #6
            Originally posted by Thein Zaw View Post
            Thanks, Andrew Musau
            I'm trying to make logistic regression :
            Code:
             logistic treatvar_1_vs_2 hhppi_score
            , how do I export this result into Latex table , and want to label treatvar_1_vs_2 as treatment Vs Control and hhppi_score as PPI score , and want to keep R2 and Constant as well in the tabel.
            Provide a reproducible example.

            Comment

            Working...
            X