mmm_plot: MMM Plot

View source: R/mmm_plot.R

mmm_plotR Documentation

MMM Plot

Description

Generates a dygraphs-plot to compare model prediction and actual values for a given AV. Also displays residuals in an interactive display in the viewer.

Usage

mmm_plot(model, data = NULL, index = 1)

Arguments

model

object of class "lm" containing the results returned by the lm() model fitting function

data

an optional data frame (or object coercible by as.data.frame to a data frame) containing the variables in the model. If not found in data, the variables are taken from environment(formula), typically the environment from which lm is called.

index

single value of type "integer" or "character" to identify the time series in the original data for the model


lukasfeuer/montelo documentation built on Aug. 14, 2022, 5:35 a.m.