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)
How can I test the meditation effect for count models (i.e. poisson, negative binomial)Dear statisticians, I want to test whether a variable M plays a mediating role in the effect of X o…
Troubles with For LOOPDear stata users, I want to do a couple of edits to 35 variables, I have a dataset containing 35 co…
Reshape wide to long over various attributesI have a dataframe that looks like so: Q1_2008_East Q1_2008_West Q2_2008_East Q2_2008_West .....…
coefplot displacing CI barsHello, I'm using the coefplot command to plot the association between a given covariate and a numbe…
overlaying histograms produce "empty" part on x-axisDear all, I am making a plot consisting of overlaying histograms. My data ranges from -9 to 14. Eve…
Subscribe to:
Post Comments (Atom)
0 Response to Creating New Variable based on Values of Another Variable (by group)
Post a Comment