plot.makeRandomData: plot.makeRandomData

Description Usage Arguments

Description

Plot the results of makeRandomData

Usage

1
2
3
4
## S3 method for class 'makeRandomData'
plot(object, g0 = TRUE, Q0 = TRUE, ask = FALSE,
  addMain = TRUE, nPoints = 1000, quantProbs = c(0.25, 0.75), nrow = 3,
  ncol = 2, layOutNum = 1:(nrow * ncol), legLoc = "topleft")

Arguments

object

An object of class "makeRandomData"

g0

Make plots of propensity scores

Q0

Make plots of outcome regressions

ask

Make plots one-by-one (if TRUE) or put all on one page using layout

addMain

Add a somewhat descriptive main title to the plot?

nPoints

The number of points to plot for each line showing propensity scores and outcome regressions

quantProbs

For variables that have interactions, the PS and OR are plotted at the median level of all variables not in the interaction and at these quantiles of any non-binary variables that are in the interaction. Defaults to the first and third quartile. Also by default if there is an interaction with a binary variable, rather than plotting curves at the quantile levels, the function plots at the unique values of the binary variable.

layOutNum

The matrix numbers fed to layout

legLoc

Passed to the x argument of legend to place legend (for all plots)


benkeser/haltmle.sim documentation built on May 12, 2019, noon