Skip to contents

S3 method to obtain the wild cluster bootstrapped p-value of an object of type boottest

Usage

# S3 method for boottest
pval(object, ...)

Arguments

object

object of type boottest

...

Further arguments passed to or from other methods.

Value

A vector containing the boundaries of the wild cluster bootstrapped p-value

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"
)
confint(boot)
#> [1] 0.03273541 0.11325149