predict_kde_log_weekly_inc: Compute predictive distribution for weekly incidence from GAM...

Description Usage Arguments Value

View source: R/kde-prediction-utils.R

Description

Compute predictive distribution for weekly incidence from GAM fit

Usage

1
predict_kde_log_weekly_inc(fm, season_weeks, bins, bin_names, n_sim)

Arguments

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

Value

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


reichlab/adaptively-weighted-ensemble documentation built on May 27, 2019, 4:53 a.m.