I'm new to Stata and I have a dumb question. I have a date variable (indexdate) with the format %tdD_m_Y. I want to create a year/month variable from the date variable so I can examine what's happening to another variable (% imprisoned) month by month. Can anyone help?
regards Don
Related Posts with Extracting a month/year variable from a date
Change all the values to zero for a certain period of time Hello! I'd like to get some advice. I have the following forms of data. I'd like to change all the…
Heckman correction for one of the variables in an indexHi, I'd like to estimate treatment effects on an index variable constructed using three variables. …
Interpretation of coefficients in LPMDear all, Perhaps a very basic question, but all the online resources I have looked at so far give …
Gravity modelHello everyone. I want to do analysis of tourist flows by gravity model in STATA 11 but have not exp…
Solving for unbalanced panel data across years - SOSHi Forum, I have been trying to do this on my own but I cannot find information either solve it. So…
Subscribe to:
Post Comments (Atom)
0 Response to Extracting a month/year variable from a date
Post a Comment