Join Barton Poulson for an in-depth discussion in this video Calculating correlations, part of Up and Running with R.
- View Offline
Once you've looked at the associations between several quantitative variables,…a natural next step is to start looking at the numerical associations between them.…The most common way of doing this is with correlations or Pearson product-moment…correlation coefficients.…In this movie, we're going to look at how to calculate correlations for…individual pairs of variables, as well as to create a matrix for an entire set of variables.…We're going to do this with the google_correlate data.…I'm going to load that right here, and just remind myself of the variable names.…
Then what I'm going to do is I'm going to create a new data set that has just…the quantitative variables.…There are several ways to specify these.…What I'm doing is I'm going to put g for Google, .quant, for quantitative, and…that gets from the Google data frame;…I'm going to select four variables,…and what I'm using is the concatenate function.…That's the c. I'm selecting the variables by their number of where they appear.…That's why I have this names list right here.…
The course continues with examples on how to create charts and plots, check statistical assumptions and the reliability of your data, look for data outliers, and use other data analysis tools. Finally, learn how to get charts and tables out of R and share your results with presentations and web pages.
- What is R?
- Installing R
- Creating bar character for categorical variables
- Building histograms
- Calculating frequencies and descriptives
- Computing new variables
- Creating scatterplots
- Comparing means