Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.report_effectsize_ttest called without proper table #459

Open
fkohrt opened this issue Aug 21, 2024 · 0 comments
Open

.report_effectsize_ttest called without proper table #459

fkohrt opened this issue Aug 21, 2024 · 0 comments

Comments

@fkohrt
Copy link
Contributor

fkohrt commented Aug 21, 2024

Describe the bug

Within report_effectsize.htest(), .report_effectsize_ttest() is called by passing a table object – except there is no such object in the scope of report_effectsize.htest(), making it refer to base::table().

To Reproduce

report/R/report.htest.R

Lines 40 to 54 in 69e8c5f

report_effectsize.htest <- function(x, ...) {
dot_args <- list(...)
model_info <- dot_args$model_info
if (is.null(model_info)) {
model_info <- suppressWarnings(insight::model_info(x, verbose = FALSE))
}
# remove arg, so dots can be passed to effectsize
dot_args[["model_info"]] <- NULL
# For t-tests ----------------
if (model_info$is_ttest) {
out <- .report_effectsize_ttest(x, table, dot_args)
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant