Join Barton Poulson for an in-depth discussion in this video Calculating descriptives, part of Up and Running with R.
- View Offline
In the previous movie, we looked at descriptive statistics for…categorical variables.…In this one, we'll look at some common, and not so common statistics for…quantitative variables, using both R's built-in functions, and some specialized…functions from code packages.…To do this, I'm going to use the same data set: social_network.csv.…I'm going to come down here, and run line 12 to load it into a data frame called…sn, for social network.…We see in the console that that command ran, and on the Workspace on the…right, that that's loaded.…
The first thing I'm going to do is simply get the default summary for the…variable age, which is the age of the respondents.…I'm just going to run line 13 here, which says summary.…Then I'm specifying the data frame sn, and then the dollar sign is for the variable age.…By default, what I get is the minimum value.…So, apparently somebody who said they were six years older responded to this…online questionnaire.…Then I have the first quartile value, which is the lowest 25%, then the median,…
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