Skip to content

Commit 97b848f

Browse files
committed
fix
1 parent 60da95a commit 97b848f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

R/equivalence_test.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,11 @@ equivalence_test.parameters_model <- function(x,
750750
# se
751751
se <- standard_error(model, vcov = vcov, vcov_args = vcov_args, ...)
752752

753+
# remove dispersion components
754+
if (!is.null(se$Component)) {
755+
se <- se[se$Component != "dispersion", ]
756+
}
757+
753758
stats::pt((range[1] - params$mu) / se$SE, df = dof, lower.tail = TRUE) +
754759
stats::pt((range[2] - params$mu) / se$SE, df = dof, lower.tail = FALSE)
755760
},

0 commit comments

Comments
 (0)