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
Multiple imputation estimate excluding some imputationsHi everyone, I would like to run the following code on my imputed dataset: Code: foreach var in $l…
What should we conclude when the Adjusted R square decrease when adding a dummy variable into the regression?In my regression using OLS, when I add a dummy variable into my regression, the Adjusted R-squared r…
Writing loop to identify individuals with consecutive positive values (n, n+1, n+2, ...)Hi, First time Statalist poster, long time follower. Thanks for this great resource. I am working …
Picking highest real output per worker in sector i in year tDear all, In my dataset, I have variables of real output per worker across 34 different sectors in …
How to Create and Merge New VariablesHi All, I need to create two new variables (one for HIV questions and one for STD questions) that me…
Subscribe to:
Post Comments (Atom)
0 Response to Comparing dates in 2 variables and 2 observations
Post a Comment