Closed dffyfe closed 3 years ago
It is due to the fact that the length of the OW (90 days) is exactly the same as the sliding window, and now there's an explicit checking that the sliding window fits "comfortably" in the OW (actually, this fixes a bug with sliding windows being larger than the OW)
Fixed by allowing sliding windows that are as long as the OW (really, just 1 sliding window). Please note that serious testing is required for corner cases
Hi Dan,
When running CMA_sliding_window using AdhereR v0.6.2 the $CMA data.frame is frequently empty making plotting and extracting CMA figures impossible. The behaviour seems inconsistent as when using med.events instead of my own data.frame it has worked as expected.
Code for scenario where $CMA is empty:
Code for scenario where CMA_sliding_window behaves as expected:
David