Skip to content

Commit 6094f4c

Browse files
committed
fix
1 parent 2026baa commit 6094f4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

R/standardize_methods.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
#' @export
44
standardize.estimate_predicted <- function(x, include_response = TRUE, ...) {
5+
model <- insight::get_model(x)
6+
57
# Get data of predictors
6-
data <- insight::get_data(attributes(x)$model, verbose = FALSE, ...)
8+
data <- insight::get_data(model, verbose = FALSE, ...)
79
data[[attributes(x)$response]] <- NULL # Remove resp from data
810

911
# Standardize predictors
@@ -13,8 +15,6 @@ standardize.estimate_predicted <- function(x, include_response = TRUE, ...) {
1315
...
1416
)
1517

16-
model <- insight::get_model(x)
17-
1818
# Standardize response
1919
if (include_response && insight::model_info(model, response = 1)$is_linear) {
2020
resp <- insight::get_response(model)

0 commit comments

Comments
 (0)