Hi Forum,
I am struggling with something very silly but would be very helpful if someone could help me out.
I have an id variable which identifies the product and the size (e.g Coca Cola 600 ml)
Since my analysis is to evaluate a policy impact, I want to make sure that for the same product I have observations for both years.
However, there are some products that I have N observations for one year and 0 for the other, which could bias my research.
I am trying to drop those products who do not have observations for both years so I can compare the changes between them
Any suggestions?
Many thanks!!
Best,
Lena
Related Posts with Matching observations across years for same id
esttabDear Researchers, I am using the generalized DID model and the code is below: Code: xtreg perf i.Ev…
ppml_panel_sg : Ramsey RESET testHi, How can I evaluate the Ramsey RESET test if I am using the ppml_panel_sg estimator: ppml_panel…
generate a new variable that takes on the value of a separate variableI have data that are long. I would like to generate a new variable that takes on the value of a sepa…
Create Country pair dummiesDear All, I have a dataset with one country exporting to 84 countries and importing from that 84 cou…
marginsplot (interaction plot) change marker position or symbolsHello all, I would like to seek help in margins plot. I searched the forum but could not find the a…
Subscribe to:
Post Comments (Atom)
0 Response to Matching observations across years for same id
Post a Comment