# simple model with data partition of 80% and no extended results
LDAModel <- LinearDA(Data = KinData, classCol = 1,
selectedCols = c(1,2,12,22,32,42,52,62,72,82,92,102,112))
#outout
# Predicted
#Actual 1 2
#1 51 32
#2 40 45
#"The accuracy of discrimination was 0.57"
LDAModel <- LinearDA(Data = KinData, classCol = 1,
selectedCols = c(1,2,12,22,32,42,52,62,72,82,92,102,112),
CV=FALSE,cvFraction = 0.8,extendedResults = TRUE)
# For a 10 fold cross-validation without outputting messages
LDAModel <- LinearDA(Data = KinData, classCol = 1,
selectedCols = c(1,2,12,22,32,42,52,62,72,82,92,102,112),
extendedResults = FALSE,cvType = "Folds",k=10,silent = TRUE)
Run the code above in your browser using DataLab