tidymodels / broom

Compare f4a4fba ... +0 ... 0f4c1ca

Coverage Reach
utilities.R deprecated-0-7-0.R rma-tidiers.R lfe-tidiers.R stats-anova-tidiers.R aaa-documentation-helper.R stats-htest-tidiers.R stats-glm-tidiers.R caret-tidiers.R quantreg-rq-tidiers.R fixest-tidiers.R emmeans-tidiers.R nnet-tidiers.R stats-factanal-tidiers.R joinerml-tidiers.R drc-tidiers.R lavaan-tidiers.R boot-tidiers.R spdep-tidiers.R ergm-tidiers.R mediate-tidiers.R survival-coxph-tidiers.R quantreg-rqs-tidiers.R polca-tidiers.R stats-lm-tidiers.R sp-tidiers.R stats-prcomp-tidiers.R survival-survfit-tidiers.R multcomp-tidiers.R mgcv-tidiers.R lmodel2-tidiers.R aer-tidiers.R list-svd-tidiers.R mass-polr-tidiers.R mlogit-tidiers.R mclust-tidiers.R geepack-tidiers.R glmnet-glmnet-tidiers.R margins-tidiers.R speedglm-speedlm-tidiers.R mfx-tidiers.R survival-survdiff-tidiers.R stats-nls-tidiers.R stats-summary-lm-tidiers.R nobs.R stats-mlm-tidiers.R ordinal-clm-tidiers.R mass-negbin-tidiers.R mass-ridgelm-tidiers.R survival-survreg-tidiers.R robust-lmrob-tidiers.R survey-tidiers.R mass-rlm-tidiers.R speedglm-speedglm-tidiers.R betareg-tidiers.R gmm-tidiers.R cmprsk-tidiers.R tseries-tidiers.R quantreg-nlrq-tidiers.R vars-tidiers.R robustbase-lmrob-tidiers.R ks-tidiers.R robust-glmrob-tidiers.R stats-arima-tidiers.R plm-tidiers.R ordinal-clmm-tidiers.R rchoice-tidiers.R biglm-tidiers.R epiR-tidiers.R list-tidiers.R survival-aareg-tidiers.R matrix-tidiers.R orcutt-tidiers.R lmtest-tidiers.R robustbase-glmrob-tidiers.R pam-tidiers.R glmnet-cv-glmnet-tidiers.R stats-decompose-tidiers.R car-tidiers.R survival-cch-tidiers.R stats-time-series-tidiers.R survival-pyears-tidiers.R stats-kmeans-tidiers.R bbmle-tidiers.R list-xyz-tidiers.R list-optim-tidiers.R gam-tidiers.R bingroup-tidiers.R zoo-tidiers.R hmisc-tidiers.R mass-fitdistr-tidiers.R leaps.R lm-beta-tidiers.R muhaz-tidiers.R kendall-tidiers.R systemfit-tidiers.R stats-smooth.spline-tidiers.R maps-tidiers.R survival-survexp-tidiers.R psych-tidiers.R btergm-tidiers.R null-and-default-tidiers.R data-frame-tidiers.R base-tidiers.R list-irlba.R stats-loess-tidiers.R auc-tidiers.R zzz.R

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.

Showing 1 of 5 files from the diff.
Other files ignored by Codecov
NEWS.md has changed.
man/tidy.gam.Rd has changed.
DESCRIPTION has changed.

@@ -6,6 +6,7 @@
Loading
6 6
#'   be tidied. Defaults to `FALSE`, meaning that smooth terms are tidied
7 7
#'   by default.
8 8
#' @template param_confint
9 +
#' @template param_exponentiate
9 10
#' @template param_unused_dots
10 11
#'
11 12
#' @evalRd return_tidy(
@@ -37,10 +38,13 @@
Loading
37 38
#' @family mgcv tidiers
38 39
#' @seealso [tidy()], [mgcv::gam()]
39 40
tidy.gam <- function(x, parametric = FALSE, conf.int = FALSE,
40 -
                     conf.level = 0.95, ...) {
41 +
                     conf.level = 0.95, exponentiate = FALSE, ...) {
41 42
  if (!parametric && conf.int) {
42 43
    message("Confidence intervals only available for parametric terms.")
43 44
  }
45 +
  if (!parametric && exponentiate) {
46 +
    message("Exponentiating coefficients only available for parametric terms.")
47 +
  }
44 48
  if (parametric) {
45 49
    px <- summary(x)$p.table
46 50
    ret <- as_tidy_tibble(
@@ -64,6 +68,11 @@
Loading
64 68
    class(sx) <- c("anova", "data.frame")
65 69
    ret <- tidy(sx)
66 70
  }
71 +
  
72 +
  if (exponentiate && parametric) {
73 +
    ret <- exponentiate(ret)  
74 +
  }
75 +
  
67 76
  ret
68 77
}
69 78

Learn more Showing 1 files with coverage changes found.

Changes in R/mgcv-tidiers.R
-5
+5
Loading file...
Files Coverage
R 0.15% 83.57%
Project Totals (108 files) 83.57%
Loading