Skip to contents

a modification of the tidy command that adds the effect size (confidence intervals for the adjusted R^2) for linear hypothesis testing contrasts (joint F-test) using glht

Usage

tidy_es_cope_F(model, label = NULL, ci = 0.95)

Arguments

model

contrast model from multcomp::glht()

label

label for the contrast term (default: joined contrast names)

ci

confidence interval (0, 1)

Value

data.frame

Examples

model_fit <- lm(salary ~ rank + discipline, data = carData::Salaries)
c <- gen_contrast_ss(model_fit, x = "rank")[-1, ]
model_fit_cope_F <- multcomp::glht(model_fit, c)
tidy_es_cope_F(model_fit_cope_F, label = "rank")
#>       lh op   rh           ss df          ms        F            p  r_sq_adj
#> 1 salary  ~ rank 152810893487  2 76405446744 148.9164 7.267053e-49 0.4282263
#>   r_sq_adj_ci_ll r_sq_adj_ci_ul
#> 1      0.3698418              1