plot.boottest: Plot the bootstrap distribution of t-statistics

View source: R/methods.R

plot.boottestR Documentation

Plot the bootstrap distribution of t-statistics

Description

Plot the bootstrap distribution of t-statistics

Usage

## S3 method for class 'boottest'
plot(x, ...)

Arguments

x

An object of type boottest

...

Further arguments passed to or from other methods.

Value

A plot of bootstrap t-statistics under different null hypotheses

Examples

requireNamespace("fwildclusterboot")
data(voters)
lm_fit <- lm(
proposition_vote ~ treatment + ideology1 + log_income + Q1_immigration,
  data = voters
)
boot <- boottest(lm_fit,
  B = 9999,
  param = "treatment",
  clustid = "group_id1"
)
plot(boot)

fwildclusterboot documentation built on March 7, 2023, 5:33 p.m.