Takes the results of a Gaussian Process Projection fit and generates a linear plot of the actual and predicted counterfactual values
plotGPPfit(
fit,
df,
obvColName,
obvName,
outcomeName,
starttime,
timeColName,
legendLoc = "topleft",
xlabel = NULL,
ylabel = NULL,
actualdatacol = "black",
preddatacol = "red",
...
)
The fit results of the GPP stan model.
The dataframe used in your model.
The column name that includes your observation of interest. Must be a string.
The name of the specific observation of interest. Must be a string.
The explanatory variable that is subjected to the counterfactual claim.
The start time of the treatment effect.
The name of the column that includes your time variable.
The preferred location of the legend in the final graph. Defaults to "topleft".
The label of the x-axis in the final graph. Defaults to input for 'timeColName'.
The preferred label of the y-axis in the final graph. Defaults to input for 'outcomeName'.
The preferred color for plotted line for actual data. Defaults to black.
The preferred color for plotted line for predicted counterfactual data. Defaults to red.
Further graphical parameters.
A plot built in r-base