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
16 stars 2 forks source link

Avoid the `assign(param_names[i])` construct #17

Closed dylanhmorris closed 1 month ago

dylanhmorris commented 3 months ago

Sure, how would you suggest fixing it? I agree its clunky. Could just unlist a list? Would prefer to not have to always call things by params$parameter_name, unless that is the best practice.

_Originally posted by @kaitejohnson in https://github.com/CDCgov/ww-inference-model/pull/5#discussion_r1671473868_

dylanhmorris commented 1 month ago

This is complete as of #29