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
Related Posts with Creating New Variable based on Values of Another Variable (by group)
Right way to extract Confidence Intervals of coefficients of interaction termDear all, I was wondering about what would the right way to form a list or matrix or a variable (ei…
hyperlink in Stata graphHi, I would like to include a hyperlink in the footnote of a graph. For instance: clear all webus…
Parallel Trends Assumption in Difference-in-Differences (DiD)Hello guys, recently I´m doing some research on the risk behavior of banks during the low interest …
VAR or VECM- which one to use?If I have 4 variables in a model and I want to check for causality between the two variables say X a…
make loop for different deciles with eclass programDear all, I use user written command oaxaca_rif by Rios-Avila (Rios-Avila, F. 2020. Recentered infl…
Subscribe to:
Post Comments (Atom)
0 Response to Creating New Variable based on Values of Another Variable (by group)
Post a Comment