We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dc729b commit 192c0a6Copy full SHA for 192c0a6
1 file changed
R/extract_parameters.R
@@ -782,7 +782,7 @@
782
exception_type <- ifelse(
783
is.null(standardize),
784
"for multivariate models",
785
- "when standardizing",
+ "when standardizing"
786
)
787
insight::format_error(
788
sprintf("`test = \"all\"` is not supported %s;", exception_type),
@@ -1106,6 +1106,9 @@
1106
# For models where the response is NOT standardized, the (Intercept) is set
1107
# to NA and so we also need to set all inferential statistics to NA
1108
coef_name <- colnames(pr)[startsWith(colnames(pr), "Std_")]
1109
+ if (length(coef_name) != 1L) {
1110
+ insight::format_error("Wrong number of standardized coefficient columns detected.")
1111
+ }
1112
rows_to_NA <- pr$Parameter == "(Intercept)" | is.na(pr[[coef_name]])
1113
if (any(rows_to_NA)) {
1114
# fmt: skip
0 commit comments