epinowcast / primarycensored

Primary event censored distributions in R and Stan.
https://primarycensored.epinowcast.org/
Other
7 stars 1 forks source link

Issue #69: Add check_truncation #120

Closed seabbs closed 1 week ago

seabbs commented 1 week ago

Description

This PR closes #69. It adds a heuristic function to check if the specified truncation is appropriate. It does this by looking at the max delay for a given observation time and throws a message if this the observation time is greater by some (user settable multiplier). This is used in fitting functions to help make sure users get efficient fitting. This PR also renames pcd_as_cmdstan_data to pcd_as_stan_data to better fit the package.

Checklist

codecov[bot] commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.35%. Comparing base (44f9871) to head (62762c0). Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #120 +/- ## ========================================== + Coverage 99.29% 99.35% +0.05% ========================================== Files 10 10 Lines 427 463 +36 ========================================== + Hits 424 460 +36 Misses 3 3 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.