predict.linear {logicDT}R Documentation

Prediction for linear models

Description

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

Usage

## S3 method for class 'linear'
predict(object, Z, ...)

Arguments

object

Fitted linear model

Z

Numeric vector of new input samples

...

Ignored additional parameters

Details

For binary outcomes, predictions are cut at 0 or 1 for generating proper probability estimates.

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]