percentage {ccda}R Documentation

Calculation of the ratio of correctly classified cases by linear discriminant analysis

Description

Extracts the ratio of correctly classified cases from the output of lda.

Usage

percentage(dataset, starting_vector, prior)

Arguments

dataset

Contains only the dataset as a matrix (without labels).

starting_vector

A vector specifying the class for each observation.

prior

A specified method that can be either "proportions" (in the case of different group sizes) or "equal" (in the case of equal group sizes).

Value

perctg

The ratio of correctly classified cases by lda for the input grouping.

See Also

ccda.main


[Package ccda version 1.1.1 Index]