One row per term: the estimate on the original data as a dot and the percentile interval as a line, ordered by estimate.
Usage
# S3 method for class 'mm_bootstrap'
plot(x, reference = NULL, xlab = "Estimate", ...)Arguments
- x
An
mm_bootstrapobject fromblock_bootstrap().- reference
Optional value drawn as a muted vertical line, such as
1for an ROI's break-even point or0for a coefficient.- xlab
Axis label.
- ...
Graphical arguments:
mainandylabreplace the defaults, andcolcolours each term's interval and dot, recycled in the row order ofx. Others are ignored.
Examples
set.seed(1)
d <- data.frame(a = rnorm(100, 2), b = rnorm(100, 1))
b <- block_bootstrap(d, function(d) colMeans(d), times = 100, seed = 1)
plot(b, reference = 0)