Descriptive statistics (shape)

Calculating kurtosis and skew

## load packages: readr, haffutils, e1071

## read data from link: "https://gitlab.com/mhaffner/data/-/raw/master/cycling-safety-df.csv"
df <- _____("https://gitlab.com/mhaffner/data/-/raw/master/cycling-safety-df.csv")

## using e1071, calculate kurtosis and skew for safety_influence

## using e1071, calculate kurtosis and skew for confidence

Calculating kurtosis and skew (on your own)

Gain some practice on your own by calculating measures of central tendency and distribution shape for one of the datasets listed below. Take a look at the documentation for each first. After making calculations, predict what you think the dataset will look like. Then, visualize it with a histogram and/or a density plot.

  • trees (any variable)
  • quakes (variables like mag and stations)
  • airquality (variables like Ozone and Solar.R)