preprocess_reg_data_for_GPthingy_stan: Preprocess state level flu data and set up a data object to...

Description Usage Arguments Value

View source: R/GPthingy-utils.R

Description

Preprocess state level flu data and set up a data object to pass to stan

Usage

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)

Arguments

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)

Value

list object with data for stan


reichlab/cdcfluutils documentation built on March 12, 2020, 2:49 p.m.