Description Usage Arguments Value
View source: R/kde-prediction-utils.R
Compute predictive distribution for weekly incidence from GAM fit
1 | predict_kde_log_weekly_inc(fm, season_weeks, bins, bin_names, n_sim)
|
fm |
a GAM fit for weekly incidence |
season_weeks |
season_weeks to predict for |
bins |
cutpoints for incidence bins |
bin_names |
vector of bin names, length 1 fewer than length(bins) |
n_sim |
number of draws from predictive distribution to return |
matrix of probabilities representing the predictive distribution of NOT LOG scale weekly incidence, with row correponding to the bin and column corresponding to each given season_week
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.