plot.bmbstats: S3 method for plotting 'bmbstats' results

Description Usage Arguments Examples

View source: R/bmbstats-S3.R

Description

This function plots the bootstrap distribution

Usage

1
2
## S3 method for class 'bmbstats'
plot(x, ...)

Arguments

x

Object of class bmbstats

...

Extra arguments. Use plot_control to control plotting style

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
x <- bmbstats(iris,
  SESOI_lower_function = function(data, na.rm, init_boot) {
    sd(data$Sepal.Length) * -0.2
  },
  SESOI_upper_function = function(data, na.rm, init_boot) {
    sd(data$Sepal.Length) * 0.2
  },
  estimator_function = function(data, SESOI_lower, SESOI_upper, na.rm, init_boot) {
    list(mean = mean(data$Sepal.Length), SESOI_lower = SESOI_lower, SESOI_upper = SESOI_upper)
  },
  control = model_control(boot_type = "perc", boot_samples = 50)
)
plot(x)

mladenjovanovic/bmbstats documentation built on Aug. 5, 2020, 4:20 p.m.