plotGPPfit {GPP}R Documentation

Plots results of a (converged) model, with true and projected values.

Description

Takes the results of a Gaussian Process Projection fit and generates a linear plot of the actual and predicted counterfactual values

Usage

plotGPPfit(
  fit,
  df,
  obvColName,
  obvName,
  outcomeName,
  starttime,
  timeColName,
  legendLoc = "topleft",
  xlabel = NULL,
  ylabel = NULL,
  actualdatacol = "black",
  preddatacol = "red",
  ...
)

Arguments

fit

The fit results of the GPP stan model.

df

The dataframe used in your model.

obvColName

The column name that includes your observation of interest. Must be a string.

obvName

The name of the specific observation of interest. Must be a string.

outcomeName

The explanatory variable that is subjected to the counterfactual claim.

starttime

The start time of the treatment effect.

timeColName

The name of the column that includes your time variable.

legendLoc

The preferred location of the legend in the final graph. Defaults to "topleft".

xlabel

The label of the x-axis in the final graph. Defaults to input for 'timeColName'.

ylabel

The preferred label of the y-axis in the final graph. Defaults to input for 'outcomeName'.

actualdatacol

The preferred color for plotted line for actual data. Defaults to black.

preddatacol

The preferred color for plotted line for predicted counterfactual data. Defaults to red.

...

Further graphical parameters.

Value

A plot built in r-base

Author(s)

Devin P. Brown devinpbrown96@gmail.com and David Carlson carlson.david@wustl.edu

See Also

autoConverge GPP runMod writeMod


[Package GPP version 0.1 Index]