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
Interact a dummy against its own continuousI find that it is very hard to interpret quadratic parameters. When I can see an inflection point i…
Query about table generationHi, I meet difficulties to generate the table I need. Can you please provide suggestions for me? Tha…
Stop Stata from processing current commandAfter starting a lengthy regression, I realized a mistake. How do I tell Stata to stop doing what i…
Replace missing observation before first observation of sectionHi all, I want to summarize my fragility variable for different types of growth episodes, so first …
Regression with timeHello everyone, I would like to run a regression with date for example as follows: Inflation=GDP+y…
Subscribe to:
Post Comments (Atom)
0 Response to Extracting a month/year variable from a date
Post a Comment