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
String variable to numeric variable, -encode- command generates new values.I have a couple hundred thousand income observations within my data. However, when I tried to create…
issue with a codedear colleagues, i am tying to perform a correlation between 2 variables with an if condition but i …
Large coefficients in a regression where the dependent variable is log-transformedHi all, In my regression, the dependent variable is log-transformed (wdealsize). Code: Linear re…
Panel data sample distributionHello Everyone, I am looking for a STATA command which can give sample distribution by year and how…
panel vecm with pvar code?Dear all, I want to use panel vecm but as I know there is no stata code to do that directly. Becaus…
Subscribe to:
Post Comments (Atom)
0 Response to Calculating month between two dates
Post a Comment