
pval
is a S3 method to collect pvalues for objects
of type boottest
and mboottest
Source: R/methods.R
pval.Rd
pval
is a S3 method to collect pvalues for objects
of type boottest
and 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"
)
pval(boot)
#> [1] 0.00140014