dajmcdon / rtestim

https://dajmcdon.github.io/rtestim/
Other
4 stars 0 forks source link

Throw error if weighted past counts are almost 0 #41

Closed zcaiElvis closed 2 months ago

zcaiElvis commented 1 year ago

If there are long sequences of 0's in observed_counts, the weighted_past_counts would contain sequences of 0's, which causes the algorithm to output NA. An error needs to be thrown in this case.

dajmcdon commented 1 year ago

Related: should appropriately handle initial 0's.