S3 method to obtain the effective number of observation used in boottest()
Source: R/methods.R
nobs.boottest.Rd
S3 method to obtain the effective number of observation used in boottest()
Usage
# S3 method for boottest
nobs(object, ...)
Value
A scalar containing the effective number of observations
used in boottest()
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"
)
nobs(boot)
#> [1] 300