teststat.mboottest: S3 method to obtain the non-bootstrapped test statistic...

View source: R/methods.R

teststat.mboottestR Documentation

S3 method to obtain the non-bootstrapped test statistic calculated via mboottest()

Description

S3 method to obtain the non-bootstrapped test statistic calculated via mboottest()

Usage

## S3 method for class 'mboottest'
teststat(object, ...)

Arguments

object

An object of type 'mboottest'

...

Further arguments passed to or from other methods.

Value

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

Examples

## Not run: 
requireNamespace("clubSandwich")
R <- clubSandwich::constrain_zero(2:3, coef(lm_fit))
wboottest <-
  mboottest(
    object = lm_fit,
    clustid = "group_id1",
    B = 999,
    R = R
  )
teststat(wboottest)

## End(Not run)


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