epiverse-trace / tutorials-middle

https://epiverse-trace.github.io/tutorials-middle/
Other
3 stars 1 forks source link

epichains update #74

Closed avallecam closed 3 months ago

avallecam commented 4 months ago

modifications after epichains update

# A tibble: 28 × 6
   chain infector infectee generation  time simulation_id
   <int>    <dbl>    <dbl>      <int> <dbl>         <int>
jamesmbaazam commented 4 months ago

Hey Andree, I was coming here to point this out after the v0.1.0 release. I would be happy to support if you need any help.

plotting <epichains> objects

I also want to point out that you can now plot the <epichains> objects using {epicontacts}. There is a snippet of code in this issue https://github.com/epiverse-trace/epichains/issues/255 and a section in the Getting Started vignette. Note that if you don't want to go the route of subsetting the longest chain, you can simulate an outbreak with 1 case (n_chains) and create an <epicontacts> object directly from the resulting <epichains> object. If you want a big enough network, use the default pop = Inf and set a high stat_max. Please let me know if you need any help with this.