plotSamplingDist: plotSamplingDist

Usage Arguments

Usage

1
2
3
4
plotSamplingDist(result, estNames, estLabels = estNames,
  legendOptions = list(x = "topleft", legend = c(estLabels, "N(0,1)")),
  incAsymDist = TRUE, densityOptions = list(n = 2^12),
  truthName = "truth", ylim = NULL, xlim = NULL, ...)

Arguments

result

Result data frame

estNames

Column name(s) of results data frame that are estimators

estLabels

Vector of names to label estimators in legend (default is to use estNames)

legendOptions

A list of arguments passed to legend.

incAsymDist

Whether to also include the asymptotic distribution

densityOptions

A list of options passed to density

truthName

Column name of results data frame that is the true ATE

ylim

y-axis limits for the plot. If null, looks for range and adds 5

\item

...Other arguments passed to plot

Plot the centered, scaled (by sqrt(var(EIF)/n)) sampling distribution of a given set of estimators.


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