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
Small N and large T panel analysisHi! I am using panel data with N=6 and monthly data from 2000 to 2017 i.e., T=216. The specific indu…
F test xtreg, fe indicates pooled OLS is better. What are the consequences for fe?Hello, I am running a fixed effects model on an unbalanced dataset. I cannot reject the null hypoth…
Correcting autocorrelation by adding year dummy variables?Hello everybody! For my master dissertation, I'm dealing with panel data. In addition, I detected h…
Replace missings in an unbalanced panel CONDITIONAL on year and firm IDHello everyone, I am new to Statalist and have an issue with filling up missings in a panel data set…
Panel data regression GLS error*Dear Members! Please could you help me to understand the reason for this: xtrc AVRG_GNI ROA ROE OS…
Subscribe to:
Post Comments (Atom)
0 Response to Days overlap in two date ranges
Post a Comment