Skip to content

Commit db6722c

Browse files
Merge branch 'main' into rc_datawizard_1.0.0
2 parents 9fba1e2 + fa9bbb0 commit db6722c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

R/standardize.models.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ standardize.mediate <- function(x,
401401
}
402402

403403

404-
text <- utils::capture.output({
404+
junk <- utils::capture.output({
405405
model_std <- stats::update(x,
406406
model.y = y_std, model.m = m_std,
407407
# control.value = control.value, treat.value = treat.value
@@ -472,7 +472,7 @@ standardize.biglm <- standardize.wbm
472472

473473
# check if model has a response variable that should not be standardized.
474474
info$is_linear &&
475-
!info$family == "inverse.gaussian" &&
475+
info$family != "inverse.gaussian" &&
476476
!info$is_survival &&
477477
!info$is_censored
478478

R/unstandardize.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ unstandardize.data.frame <- function(x,
7272

7373
dots <- match.call(expand.dots = FALSE)[["..."]]
7474

75-
if (!is.null(dots$grp_attr_dw)) {
76-
grp_attr_dw <- eval(dots$grp_attr_dw, envir = parent.frame(1L))
77-
} else {
75+
if (is.null(dots$grp_attr_dw)) {
7876
grp_attr_dw <- NULL
77+
} else {
78+
grp_attr_dw <- eval(dots$grp_attr_dw, envir = parent.frame(1L))
7979
}
8080

8181
if (!is.null(grp_attr_dw)) {

0 commit comments

Comments
 (0)