Learn R Programming

dprep (version 3.0.2)

eje1dis: Basic example for discriminant analysis

Description

This data frame contains information about 32 students. The first two columns contain their grades obtained on the first two exams and the last column of the dataset contains the classes: P=Pass, and F=Fail

Usage

data(eje1dis)

Arguments

Format

A data frame with 32 observations on the following 3 variables.
E1
Grade on the first exam
E2
Grade on the second exam
Class
The class vector:P=Pass, F=Fail

Source

Data obtained from Edgar Acuna:

Examples

Run this code
#---- Performing 10-fold cross validation using the LDA classifier-----
data(eje1dis)
crossval(eje1dis,10,"lda",repet=5)

Run the code above in your browser using DataLab