Skip to contents

This function is a skeleton for creating a plot to visualize retention regression over time. It fits a linear regression model to the provided data and plots the regression line along with the data points. The plot also includes the predicted rate for the next year, and labels for the residuals and prediction.

Usage

plot_rate_regression_skeleton(.data, list_name)

Arguments

.data

a data frame cleaned up from df_rate_metric_values.rda

list_name

a name list found in df_rate_metric_values.rda

Value

a plot