predict_QDA: Predict QDA

Description Usage Arguments Value

View source: R/LDA.R

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 Aug. 2, 2018, 4:50 a.m.