View source: R/forecasting_practical.R
extract_predicted_points | R Documentation |
extract_predicted_points
takes the linear regression object
returned by linear_regression
and extracts model predictions
extract_predicted_points(lm_output, incidence_data, weeks_ahead, log_transform)
lm_output |
linear regression object returned by |
incidence_data |
incidence data extracted by |
weeks_ahead |
numeric vector of length 1: number of weeks to predict ahead |
log_transform |
logical vector of length 1: if TRUE, linear regression was performed on log transformed data, otherwise linear regression was performed on original data |
data frame with predicted points and original data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.