predict: Predict function

Description Usage Arguments Details Author(s) Examples

View source: R/predict.R

Description

The predictions of the model

Usage

1
predict(regLog, newdata, type = "class")

Arguments

regLog

Obj. Reg.Log ”is an S3 object provided by the fit (.) Function.

newdata

are the data to be processed

type

indicates the type of prediction "class", "posterior" (predicted class or probability belonging to the classes)

Details

Make predictions and evaluate the performance of the model

Author(s)

Sami Ait Tilat, Afaf Ben Haj, Marie Vachet

Examples

1
2
3
4
5
## Not run: 
data(ionosphere)
pred=predict(modele, iono_test)

## End(Not run)

samiaittilat/Logistic-Regression-from-scratch-in-R documentation built on Dec. 22, 2021, 10:11 p.m.