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
Event study using "never treated" units - DID multiple periodsHello everyone, I am applying DID with multiple periods using csdid and "never treated" units as co…
Format the number of decimals in Table command in Stata-17Hello everyone. I use the command below to determine the number of decimals in my table in Stata-17.…
Stochastic Frontier Approach (SFA): Why the sfpanel results are different by z variable order?Dear all, I'm on the research, based on stochastic frontier approach (SFA), Battese and Coelli time-…
Cumulative rolling sum over fixed time period in unbalanced panelI have an unbalanced panel dataset, potentially with gaps. Time is coded as daily, but is really mon…
Sample from joint distributionHi, I was wondering if there is a way to generate a dataset with 100 observations, with two variabl…
Subscribe to:
Post Comments (Atom)
0 Response to Calculating month between two dates
Post a Comment