View source: R/create_ave_plot_data.R
This function creates a data.table containing average actual & fitted performance over a specified dimension
1 | create_ave_plot_data(x, y_true, y_pred = NULL, w = NULL, rescale = FALSE)
|
x |
A vector that contains the dimension that you want to aggregate by |
y_true |
A vector that contains the target variable (think OBS in emblem) |
y_pred |
A vector that contains the fitted value from a model (think CA in emblem). Defaults to NULL |
w |
A vector that contains row level weights (e.g. exposure). Defaults to NULL |
rescale |
A logical indicating whether you want to the resulting series scaled about the largest level |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.