Description Usage Arguments Value
View source: R/GPthingy-utils.R
Preprocess state level flu data and set up a data object to pass to stan
1 2 3 4 | preprocess_reg_data_for_GPthingy_stan(us_flu, seasons, predict_season,
predict_last_obs_season_week, return_extras = FALSE,
knot_limits = c(1, 53L), DX = 10, get_all_region_seasons = FALSE,
pred_all_t = FALSE)
|
us_flu |
data frame of regional and national flu observations |
seasons |
character vector of seasons to include in "2014/2015" format |
predict_season |
which season are we generating predictions for |
predict_last_obs_season_week |
integer season week from which to predict |
return_extras |
boolean, default FALSE: return extra things not needed for stan, but that might be helpful for other things (like making plots) |
list object with data for stan
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.