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 c98a441 commit 3703b29Copy full SHA for 3703b29
R/multinom_reg_data.R
@@ -61,7 +61,7 @@ set_pred(
61
args =
62
list(
63
object = quote(object$fit),
64
- newx = quote(as.matrix(new_data)),
+ newx = quote(as.matrix(new_data[, rownames(object$fit$beta[[1]])])),
65
type = "class",
66
s = quote(object$spec$args$penalty)
67
)
@@ -80,7 +80,7 @@ set_pred(
80
81
82
83
84
type = "response",
85
86
0 commit comments