This may be a basic question, but is there a straightforward way to calculate the number of days that overlap between two date ranges?
An example of what I'm looking for is the Overlap variable below:
Event1_start Event1_end Event2_start Event2_end Overlap
01mar2020 30mar2020 15feb2020 5mar2020 5
01mar2020 30mar2020 01feb2020 29feb2020 0
Thanks so much for your help!
Related Posts with Days overlap in two date ranges
importing a .csv fileHi, I have a .csv file that the first row is variable names and the second row belongs to the corres…
Methods for computing the point-biserial correlationAfter reading this question on ResearchGate the other day, I installed -pbis- (net describe sg20, fr…
summary stats with yearsDear all, do you know if there is a quick and easy way to produce summary stats with a column conta…
Difference in Difference model with panel data Dear, I have some questions about the difference-in-differences (DID) model with fixed effects. I …
Transposing selected observations from the same datasetHello, I want to change the layout of my dataset for only SOME observations (from long to wide). Not…
Subscribe to:
Post Comments (Atom)
0 Response to Days overlap in two date ranges
Post a Comment