linear.logic
modelsUse new input data and a fitted linear.logic
model to
predict corresponding outcomes.
# S3 method for linear.logic
predict(object, X, Z = NULL, s = NULL, ...)
A numeric vector of predictions. For binary outcomes, this is a vector with estimates for
\(P(Y=1 \mid X = x)\).
Fitted linear.logic
model
Matrix or data frame of binary input data. This object should correspond to the binary matrix for fitting the model.
Optional quantitative covariables supplied as a matrix or data frame. Only used (and required) if the model was fitted using them.
Regularization parameter. Only used if type = "lasso"
or
type = "cv.lasso"
was set. Only useful if the penalty saved in
object$s
should be overwritten.
Ignored additional parameters