Skip to contents

Plot a bootmakr object

Usage

# S3 method for bootmakr
plot(x, type = c("auto", "kd_sweep", "convergence", "histogram"), ...)

Arguments

x

An object of class "bootmakr", as returned by bootmakr.

type

Which plot to draw:

"kd_sweep"

adjusted estimate and bootstrap confidence interval at each kd; solid markers are significant at alpha, hollow markers are not. Shows the "breakdown point" at which the estimate stops being statistically significant.

"convergence"

three panels: the bootstrap distribution, and the standard error and p-value as functions of the number of replications (requires converge in the call to bootmakr()).

"histogram"

the bootstrap distribution of the adjusted estimate with the original estimate marked.

"auto"

(default) "convergence" if diagnostics are available, otherwise "kd_sweep" if several kd values were used, otherwise "histogram".

...

Further arguments; for type = "histogram", kd_idx selects which kd value to show (default 1).

Value

x, invisibly.