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)
generating counterfactual when I have adjusted for a control in Interrupted time seriesDear colleagues i have a model: arima lograte time vacperiod strike malnutration, arima(1,0,0) . Whe…
Panel data: Multiple IDs, partly duplicatedI have received panel data that need lots of cleaning. The most substantial challenge is finding a u…
List of observations in regressionHello, I am running a regression in STATA (xtgee). xtgee Profit number_employees company_size , li…
page break between two tables generated by -esttab-?Dear all, Is there a way to add a page break between two tables when using -esttab-? I want my code…
Creation of cumulative lead variableHi all, my Data looks like the following: Code: * Example generated by -dataex-. For more info, t…
Subscribe to:
Post Comments (Atom)
0 Response to Creating New Variable based on Values of Another Variable (by group)
Post a Comment