` ?loan50`

# Homework 03

Due date: 2022-09-16.

- Read OS4 Sections 2.1.2 and 2.1.4

Use the data set `loan50`

contained in the package `openintro`

. To access this data set, first load the package with the function `library`

and then call the function `data`

on `loan50`

. See the lecture Summary Statistics for examples.

- Read the helpfile for a description of this data set. In the console (not your homework assignment), run

Pick a numerical variable and print the first 7 observations using the R function

`head`

. Then print the last 10 observations using the function`tail`

.Pick a numerical variable and calculate the mean and the median, using the functions

`mean`

and`meadian`

. If one is bigger than the other, explain why that is probably the case.Pick a numerical variable and calculate the standard deviation and the interquartile range, using the functions

`sd`

and`IQR`

.Pick a numerical variable and calculate a quantile of your choice. Interpret this statistic in the context of the data.