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
r-squared results are negative and more than 1 for bilateral gravity modelDear Statalist, I have estimated a gravity model with external instruments for possible endogeneity…
Absolute value of residualHello Experts A typical measure for firms’ use of earnings management in the finance literature is b…
Regular survival analysis versus competing risk analysisHi, I have a question regarding my analysis setup for research on the exit-route for strategies ado…
How to identify closing triads in a panel data set?Dear Stata experts, I am currently working on a project using panel data with 20.286 observations. …
How can I calculate a confidence interval around a linear spline that it interacted with another variableI have a large dataset (50m rows) in Stata. One of my independent variables is age, and I'm using li…
Subscribe to:
Post Comments (Atom)
0 Response to Comparing dates in 2 variables and 2 observations
Post a Comment