Friday, November 4, 2022

Creating New Variable based on Values of Another Variable (by group)

Hello Stata Friends:

I would like to make the values of one variable, each into their own new variables themselves to be applied to everyone in a given group (in this case, state-year pairs).

I currently have:
Array

I am trying to get:
Array

Any help on this would be greatly appreciated!

Thank you!
Carlos

No comments:

Post a Comment