mala::home Davide “+mala” Eynard’s website


Statistical learning with R part 3 (2016): Classification with LDA

[This post is part of the Statistical learning with R - 2016 edition series. You might want to check out the 2015 edition too]

So, if you are here you probably have already unpacked the zip file. If not, please check this page before starting.

Try to run ClassificationDemo.R: supposing your current working directory is the one where you unpacked the R files, type


Run the demo and try answering the questions you find there. In some cases you should be able to do that immediately after looking at the results, in others you will first need to add few lines of code to actually get any result. If you find yourself stuck anywhere, all the material you should need is either in the script itself or in the lab notes.