Learn R Programming

fwildclusterboot (version 0.13.0)

teststat.boottest: S3 method to obtain the non-bootstrapped t-statistic calculated via boottest()

Description

S3 method to obtain the non-bootstrapped t-statistic calculated via boottest()

Usage

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

Value

A vector containing the non-bootstrapped t-statistic calculated in boottest()

Arguments

object

An object of type boottest

...

Further arguments passed to or from other methods.

Examples

Run this code
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"
)
teststat(boot)

Run the code above in your browser using DataLab