Dear statalist,
I am trying to solve the following problem:
I have 105 dummy variables for 105 months spanning Janury 2010 – September 2018, each taking the value 1 if something happened that month. They’re named mat201001, mat201002 … mat201809.
I need to generate a new variable, that will give me the month and year in which the event first occured, that is when a dummy variable first took the value 1. For example if the first dummy to take the value 1 was mat201202, the new variable would be 201202, if the first dummy to be 1 is mat201801, the new variable will be 201801.
Thank you!
Zuzana
Related Posts with Generate variable that takes the name of one of a list of dummy variables
interflex command failedHello everyone, I have a problem with the results of the interflex command. I had tried to look if …
Spatial Panel analysis for SYS-GMMHello, I have a problem. I have my model SYS_GMM (level e diff) done by using xtabond2 of Arellano a…
Difference in Difference EstimationDear All, My goal is to find out the impact of migration on several firm level performance measures…
Tabulation only for freq>=5Hello, I am running this tabulate command to display some studentized residuals: tabulate cname if …
Putexcel command for logistic regressionHello there I'm trying to make a nice table for my logistic regression results using putexcel comma…
Subscribe to:
Post Comments (Atom)
0 Response to Generate variable that takes the name of one of a list of dummy variables
Post a Comment