predict.linear.logic {logicDT}R Documentation

Prediction for linear.logic models

Description

Use new input data and a fitted linear.logic model to predict corresponding outcomes.

Usage

## S3 method for class 'linear.logic'
predict(object, X, Z = NULL, s = NULL, ...)

Arguments

object

Fitted linear.logic model

X

Matrix or data frame of binary input data. This object should correspond to the binary matrix for fitting the model.

Z

Optional quantitative covariables supplied as a matrix or data frame. Only used (and required) if the model was fitted using them.

s

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

Value

A numeric vector of predictions. For binary outcomes, this is a vector with estimates for P(Y=1 \mid X = x).


[Package logicDT version 1.0.4 Index]