Skip to content

Commit

Permalink
correct coefficients in tidy.varest() output (#1175)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpcouch authored Nov 27, 2023
1 parent db2ca13 commit 15c5dcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

* Added support for columns `adj.r.squared` and `npar` in `glance()` method for objects outputted from `mgcv::gam()` (#1172).

* Corrected coefficients values in `tidy.varest()` output (#1174).


# broom 1.0.5

Expand Down
2 changes: 1 addition & 1 deletion R/vars-tidiers.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ tidy.varest <- function(x, conf.int = FALSE, conf.level = 0.95, ...) {

for (v in names(s$varresult)) {
ret[[v]] <- as_tidy_tibble(
s$varresult[[1]]$coefficients,
s$varresult[[v]]$coefficients,
new_names = c("estimate", "std.error", "statistic", "p.value")
)
ret[[v]]$group <- v
Expand Down

0 comments on commit 15c5dcc

Please sign in to comment.