Welcome to Advanced Data Analysis with R, part of Session II of the June short courses, taught by Justin DeSimone.
So far today we have discussed how to set up R and R Studio for analysis, how to import data, some of the mathematical bases of statistical procedures, and how to do correlations in R.
Some key points from this morning:
1. Centering data (X - Xbar) sets the mean to 0, standardizing (X - Xbar / s_x) it sets the mean to 0 and sets the standard deviation to 1. This is also called the Z-transformation, as the standardization of the data gives us Z-scores.
2. You only have to download packages for R once, but you must activate them with the library("package name") command or toggle them on in the checklist each time you open R Studio.
3. There are often multiple ways to do the same thing in R, some of which are efficient, and some of which require more work.Â
Â