-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make likelihood()
work with <epichains_summary>
, <epichains>
, and <numeric>
objects
#213
Conversation
af0b43f
to
060f580
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #213 +/- ##
==========================================
+ Coverage 99.03% 99.07% +0.03%
==========================================
Files 8 8
Lines 729 755 +26
==========================================
+ Hits 722 748 +26
Misses 7 7 ☔ View full report in Codecov by Sentry. |
likelihood()
work with <epichains_summary>
and <epichains_tree>
objectslikelihood()
work with <epichains_summary>
and <epichains>
objects
e9a8c62
to
8746680
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Just a minor comment.
@sbfnk Currently, if the data contains Lines 103 to 104 in 5e6fd49
Would it make sense to calculate the likelihood using only the finite values and in the case where |
86afdf1
to
31c2f33
Compare
I don't think it would be correct to exclude some of the outbreaks from the likelihood. We can only have data containing |
This is already the case.
That makes sense. See change here 8a35bc7. Did you mean that? |
108f4e0
to
33d7727
Compare
33d7727
to
80115cd
Compare
1e3bc94
to
9a1b28d
Compare
b3543c5
to
116d2dd
Compare
This PR closes #39.
NEWS.md
A feature
likelihood()
works only with a numeric vector of chains.An
<epichains_tree>
or<epichains_summary>
object can be passed directly tolikelihood()
to estimate the likelihood of observing the chains.Not applicable.
- Do we want to override the other relevant arguments (offspring_dist, stat_max, etc) with the attributes of an<epichains_tree>
when passed, or should the user still supply them?Inf
andstat_max
isInf
, it errors because R cannot generate an infinite sequence (Seeepichains/R/likelihood.R
Line 104 in 5e6fd49
@sbfnk, how can we surmount this issue?
Would it make sense to calculate the likelihood using only the finite values and in the case where
individual = TRUE
, returnNA
for theInf
values?