teststat: 'teststat' is a S3 method to collect teststats for objects of...

View source: R/methods.R

teststatR Documentation

teststat is a S3 method to collect teststats for objects of type boottest and mboottest

Description

teststat is a S3 method to collect teststats for objects of type boottest and mboottest

Usage

teststat(object, ...)

Arguments

object

An object of type lm, fixest, felm or ivreg

...

other arguments

Value

A scalar with containing the non-bootstrapped test statistic of interest

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

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