Skip to content

Commit 2026baa

Browse files
committed
fix
1 parent 094edcc commit 2026baa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

R/standardize_methods.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ standardize.estimate_predicted <- function(x, include_response = TRUE, ...) {
1313
...
1414
)
1515

16+
model <- insight::get_model(x)
17+
1618
# Standardize response
17-
if (
18-
include_response && insight::model_info(insight::get_model(x), response = 1)$is_linear
19-
) {
20-
resp <- insight::get_response(attributes(x)$model)
19+
if (include_response && insight::model_info(model, response = 1)$is_linear) {
20+
resp <- insight::get_response(model)
2121
disp <- attributes(datawizard::standardize(resp, ...))$scale
2222

2323
for (col in c("Predicted", "Mean", "CI_low", "CI_high")) {

0 commit comments

Comments
 (0)