Skip to content

Commit

Permalink
prais prints useless stuff on Fstat
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentarelbundock committed May 16, 2024
1 parent e6eb0a8 commit 8caaaf1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Description: Create beautiful and customizable tables to summarize several
RTF, JPG, or PNG. Tables can easily be embedded in 'Rmarkdown' or 'knitr'
dynamic documents. Details can be found in Arel-Bundock (2022)
<doi:10.18637/jss.v103.i01>.
Version: 2.0.0.10
Version: 2.0.0.11
Authors@R: c(person("Vincent", "Arel-Bundock",
email = "[email protected]",
role = c("aut", "cre"),
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ New features:

* `formula` can now include variables on the left-hand side to indicate the subset of columns to summarize: `datasummary_balance(mpg + hp ~ am, data = mtcars)` Thanks to @etiennebacher for feature request #751.

Minor:

* Unnecessary text printed to screen on some F stat computations is now suppressed.

Bugs:

* `escape` argument not respected in `datasummary_df()`. Thanks to @adamaltmejd for report #740
Expand Down
4 changes: 3 additions & 1 deletion R/methods_stats.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ 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 <- try(lmtest::waldtest(x, vcov = stats::vcov)$F[2], silent = TRUE)
if (isTRUE(check_dependency("lmtest"))) {
void <- utils::capture.output(fstat <- try(lmtest::waldtest(x, vcov = stats::vcov)$F[2], silent = TRUE))
}
if (inherits(fstat, "numeric")) {
out[["F"]] <- fstat
}
Expand Down

0 comments on commit 8caaaf1

Please sign in to comment.