Announcement

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

  • Adding weight in Callaway and Sant'Anna Diff in Diff

    Hi,

    I would like to add weights to my code, using the csdid package for Callaway and Sant'Anna DiD estimator.
    However, when I for example use the code
    Code:
     eststo: csdid pchange_wage_f [pweight=size], ivar(kontor_handel) time(year) gvar(cs_var2) method(drimp) saverif(rif) replace
    , I get an error that the pweights, or fweights are not allowed.
    What am I doing wrong?

    Best

  • #2
    Another question I have about this package is that is there a way to plot the event study results after we estimate them?
    Do you think you can help me please FernandoRios ?
    Last edited by Neg Kha; 11 Apr 2023, 09:10.

    Comment


    • #3
      Hi Neg
      1. use either "w" or "aw". Internally they are used as pw are used.
      2. after estimating events (say estat event) just type csdid_plot and that should make the plot
      F

      Comment


      • #4
        Originally posted by FernandoRios View Post
        Hi Neg
        1. use either "w" or "aw". Internally they are used as pw are used.
        2. after estimating events (say estat event) just type csdid_plot and that should make the plot
        F
        Hi Fernando,

        Thanks for the response. I meant plotting the ATT by Periods Before and After treatment, Event Study:Dynamic effects results. Not for a certain group.

        Best

        Comment


        • #5
          Hi Neg
          I don't understand your question then.
          when you do
          estat event
          csdid_plot
          it will estimate the ATTby periods before and after, and plot them. If that isn't happening, please update your commands (ssc install csdid, replace ssc install drdid, replace)

          Best wishes
          F

          Comment

          Working...
          X