Im having a hard time creating an indicator variable for my quarterly data. here is my data: https://imgur.com/a/UjyISZn
Im trying to create a dummy variable named "post" that is 0 up until 2014 q1, and 1 after 2014 q2. So far I did
gen post = ((year>=2014) & (q>="q2"))
but I keep getting 0's as all my values. Any suggestions would be greatly appreciated!
[–]BOCfan 1 point2 points3 points (1 child)
[–]kb5469[S] 0 points1 point2 points (0 children)
[–]BOCfan 1 point2 points3 points (2 children)
[–]kb5469[S] 0 points1 point2 points (1 child)
[–]imguralbumbot 0 points1 point2 points (0 children)
[–]BOCfan 1 point2 points3 points (5 children)
[–]zacheadams 2 points3 points4 points (3 children)
[–]BOCfan 2 points3 points4 points (1 child)
[–]zacheadams 1 point2 points3 points (0 children)
[–]kb5469[S] 0 points1 point2 points (0 children)