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
Quickly merging chunks of variables within the same datasetHello, I have a dataset with different groups of variables that actually represent the same questio…
change in volume between the same months in different yearsI have a hospital dataset declared as a time series with panel data with monthly observations. Volum…
Sensitivity analysis to assess selection biasHi there! Is there a sensitivity analysis or test in Stata that can be used to estimate the directio…
Heckman selection modelHi there! I'd like to learn more about the Heckman selection model to control for selection bias. He…
Wooldrige Test for serial correlation.Hello guys! I was running the Wooldrige Test for serial correlation of the error terms and the H0 is…
Subscribe to:
Post Comments (Atom)
0 Response to Days overlap in two date ranges
Post a Comment