CDCgov / ww-inference-model

An in-development R package and a Bayesian hierarchical model jointly fitting multiple "local" wastewater data streams and "global" case count data to produce nowcasts and forecasts of both observations
https://cdcgov.github.io/ww-inference-model/
Apache License 2.0
17 stars 2 forks source link

Set up functionality to use pathfinder (for initialization or prototyping) #110

Open kaitejohnson opened 2 months ago

kaitejohnson commented 2 months ago

Goal

Stan makes it relatively easy to use pathfinder, which would speed up development when prototyping iterations of the model, and might also be useful for initialization (which is already a separate issue to fix #66). We should add functionality to use pathfinder.

Context

athowes commented 1 month ago

With a ... it'd be easy to do this https://github.com/CDCgov/ww-inference-model/issues/174#issuecomment-2361478428

dylanhmorris commented 1 month ago

You mean for passing a prior pathfinder output to sample() for initialization, yes? Running pathfinder currently requires calling model$pathfinder() as opposed to model$sample(), no?