predict_QDA: Predict QDA

Description Usage Arguments Value

Description

this function classifies test data using a fitted QDA model

Usage

1
predict_QDA(fit, Xtest)

Arguments

fit

this is a list with elements pi.hats, mu.hats, and Sigma.hats where pi.hats is a list of C response category sample proportions, mu.hats is a list of C p-dimensional sample mean proportions, Sigma.hats is a list of C p by p Sample covariance matrices

Xtest

this is a matrix with ntest rows and p column, each row is a test case

Value

returns a vector of ntest entries, where the ith entry is the estimated response category (some value in 1, ..., C) for the ith test case.


MGallow/statr documentation built on May 7, 2019, 2:04 p.m.