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
RD Plot with Evenly Spaced binsHi all, I am trying to run RDplot while choosing my number of evenly spaced bins. If I want to have …
Pseudo R2 for logit and mlogit in multiple imputationHello, I am using multiple imputation and survey data with a logit model and would like to calculat…
Marking correlation coefficients on pwcorrHi, Using a dataset with many correlated variables, I'm interested in seeing if any of the pairwise …
merging datasets only if two variables matchHi all, I need to merge two datasets, but only if two variables from both dataset match. First data…
Formatting dates correctly and calculating age from two datesHello, I'm sure someone has posted about this on the forum before but I can't find the exact answer…
Subscribe to:
Post Comments (Atom)
0 Response to Extracting a month/year variable from a date
Post a Comment