predict_logistic: Multiclass logistic regression prediction

Description Usage Arguments Value

View source: R/logistic_regression.R

Description

This function use the outcome of multilevel logistic regression function to conduct prediction given data.

Usage

1
predict_logistic(X, Y, object)

Arguments

X

A specifeid design matrix

Y

The multilevel outcome of interest. This is the reference value to evaluate the accuracy of prediction.

object

Output from the multiclass_logistic regression function. (beta matrix)

Value

A series outcome of prediction including a matrix of conditional probabilities and a crude prediction of Y.


Zebedial/bis557 documentation built on Dec. 21, 2020, 2:16 a.m.