Dear All,
May data set contains a variable named month1 for the first month and year1 for the first year and month2 for the second month and year2 for the second year. there is no specific day on the month. In this case, how do I generate a new variable which contains both month and year and how can I calculate the month difference between two dates?
Thank you for your help
Related Posts with Calculating month between two dates
combomarginsplot with mimrgnsHi everyone, Does anyone know how to use combomarginsplot with margins derived from the mimrgns com…
Stata 16 on MS Windows strange behaviorThis is really weird, but for some reason a double-click is required on icons in Stata's windows hea…
panel data and time variable formatHello, I have a dataset and i need to define quarterly time variable and declare data to be a panel…
teffects model selection; AIPW coefficient interpretationI have two questions regarding methods for a pending project: I will have an outcome "yscale" that …
error message in xtglsWhen I ran the xtgls regression: Code: xtgls dep var, covariate 1 covariate 2 .....covariate n, cor…
Subscribe to:
Post Comments (Atom)
0 Response to Calculating month between two dates
Post a Comment