From 09665c7880d6747fa747e806b817faa8148bdd0c Mon Sep 17 00:00:00 2001 From: Vincent Arel-Bundock Date: Sun, 19 May 2024 08:18:53 -0400 Subject: [PATCH] bug --- R/methods_stats.R | 1 + 1 file changed, 1 insertion(+) diff --git a/R/methods_stats.R b/R/methods_stats.R index ff0d5725..0274f956 100644 --- a/R/methods_stats.R +++ b/R/methods_stats.R @@ -20,6 +20,7 @@ glance_custom_internal.lm <- function(x, vcov_type = NULL, gof = NULL, ...) { if (inherits(gof, "data.frame") && "statistic" %in% colnames(gof)) { out[["F"]] <- gof$statistic } else { + fstat <- NULL if (isTRUE(check_dependency("lmtest"))) { void <- utils::capture.output(fstat <- try(lmtest::waldtest(x, vcov = stats::vcov)$F[2], silent = TRUE)) }