Learn R Programming

glmdisc (version 0.6)

predictlogisticRegression: Predicting using a logistic regression fitted with RCpp::fast_LR.

Description

This function returns a numeric vector containing the probability of each observation of being of class 1 given a vector of logistic regression parameters (usually estimated through RCpp::fast_LR).

Usage

predictlogisticRegression(test, parameters)

Arguments

test

A matrix containing test data

parameters

A vector containing the logistic regression parameters