Skip to contents

S3 method to print key information for objects of type bboottest

Usage

# S3 method for boottest
print(x, ..., digits = 4)

Arguments

x

object of type boottest

...

Further arguments passed to or from other methods.

digits

Number of rounding digits

Value

A scalar containing the effective number of observations used in mboottest

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"
)
print(boot)
#> boottest.lm(object = lm_fit, param = "treatment", B = 9999, clustid = "group_id1")
#>  
#> p value: 0.0011 
#> confidence interval: 0.0329 0.1136 
#> test statistic 3.7094