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
How to make age groups ?Hello, i need help in creating age groups. My variable name is Age and i have almost 10000 cases. I …
How to show p-value in sembuilder path diagram?Dear Statalist: I am conducting analysis using the command sem and sembuilder. Can somebody teach m…
Calculate AUC and diagnostic accuracy for each outcome after mlogitHi all, I am trying to fit a multinomial model for four outcomes using mlogit in Stata. I wonder i…
How to change label position with coeffplot ?Good morning everyone, I have the following code that plots my coefficient : Code: coefplot /// (…
how to create a table that display a variable's summary stats by year and statusHi! As indicated in the title, I wonder how I can create a table to display a variable's summary st…
Subscribe to:
Post Comments (Atom)
0 Response to Calculating month between two dates
Post a Comment