Fit lab-site-level recent wastewater trends with BRMS.
Source:R/fit_recent_trends.R
fit_ww_trend.Rd
Fit lab-site-level recent wastewater trends with BRMS.
Usage
fit_ww_trend(
data,
exp_rate_conc_pop_prior_mean,
exp_rate_conc_pop_prior_sd,
sd_exp_rate_conc_prior_mode,
sd_exp_rate_conc_prior_sd,
t0_conc_pop_prior_mean,
t0_conc_pop_prior_sd,
sd_t0_conc_prior_mode,
sd_t0_conc_prior_sd,
log_sd_obs_pop_prior_mean,
log_sd_obs_pop_prior_sd,
sd_log_sd_obs_prior_mode,
sd_log_sd_obs_prior_sd,
seed,
control,
...
)
Arguments
- data
Data to fit. Must have columns
"time"
,'lab_site_index"
,"conc"
, and"cens"
.- exp_rate_conc_pop_prior_mean
Mean for the Normal prior on the population-wide exponential growth rate of wastewater viral genome concentrations.
- exp_rate_conc_pop_prior_sd
Standard deviation for the Normal prior on the population-wide exponential growth rate of wastewater viral genome concentrations.
- sd_exp_rate_conc_prior_mode
Mode for the positive-constrained Normal prior on the standard deviation of wastewater viral genome concentration exponential growth rates (which governs the variability in growth rate among lab-sites)
- sd_exp_rate_conc_prior_sd
Standard deviation for the positive-constrained Normal prior on the standard deviation of wastewater viral genome concentration exponential growth rates (which governs the variability in growth rate among lab-sites)
- t0_conc_pop_prior_mean
Mean for the Normal prior on the population-wide wastewater viral genome concentration at time t = 0.
- t0_conc_pop_prior_sd
Standard deviation for the Normal prior on the population-wide wastewater viral genome concentration at time t = 0.
- sd_t0_conc_prior_mode
Mode for the positive-constrained Normal prior on the standard deviation of wastewater viral genome concentrations at time t = 0 (which governs the variability in initial concentration among lab-sites).
- sd_t0_conc_prior_sd
Standard deviation for the positive-constrained Normal prior on the standard deviation of wastewater viral genome concentrations at time t = 0 (which governs the variability in initial concentration among lab-sites).
- log_sd_obs_pop_prior_mean
Mean for the log of the population-wide observation error standard deviation (observation errors are Normal).
- log_sd_obs_pop_prior_sd
Standard deviation for the log of the population-wide observation error standard deviation (observation errors are Normal).
- sd_log_sd_obs_prior_mode
Mode for the positive-constrained Normal prior on the standard deviation of log lab-site-specific observation error standard deviations (which governs the variability in observation error scale among lab-sites).
- sd_log_sd_obs_prior_sd
Standard deviation for the positive-constrained Normal prior on the standard deviation observation error standard deviations (which governs the variability in observation error scale among lab-sites).
- seed
Seed for cmdnstan's pseudorandom number generator.
- control
list of control parameters passed to stan via
brms::brm()
. DefaultNULL
.- ...
Additional keyword arguments passed to
brms::brm()