create_ave_plot_data: create_ave_plot_data

Description Usage Arguments

View source: R/create_ave_plot_data.R

Description

This function creates a data.table containing average actual & fitted performance over a specified dimension

Usage

1
create_ave_plot_data(x, y_true, y_pred = NULL, w = NULL, rescale = FALSE)

Arguments

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


gm209/gmtools documentation built on May 22, 2019, 2:39 p.m.