Hello,
Beginner Stata user here.
So I have two date variables in 13Nov2019 type format, which are a start and end date variable. I also have a group variable. These are the vars:
group start_date end_date
Per group, I want to compare the start_date of an observation to the end_date of the previous observation, and flag if there are any overlaps.
Do you have any advice on how I can do this?
Related Posts with Comparing dates in 2 variables and 2 observations
Omit range of values on the x-axis in a histogramHi, I'm trying to plot a histogram of a variable for Spanish data. Since Spain was a dictatorship be…
How to plot regression in an intervalHi all, can any of you tell me if the below representation of regression analysis is possible in ST…
geodist - calculating distanceHi Statalists, I have data with id (i.e. addresses), year (i.e. 2006, 2007 and 2008), devision (i.e…
Interpreting coefficient vs. margins from three-way interactionHello, I have a question regarding the interpretation of a three-way interaction in a GEE model wit…
Homogeneity test (Hsiao test) on panel data balanced with many missing valuesDear all, I'm new on Stata community and I'm using stata 12. I'm trying to determine whether governa…
Subscribe to:
Post Comments (Atom)
0 Response to Comparing dates in 2 variables and 2 observations
Post a Comment