Open R/R Studio, install package car
1. From the package car load the dataset Anscombe
2. Write code to find the states below the 25th percentile of expenditure on education
3. Write code to sort their names alphabetically and paste their names into your answer.
4. Create a variable relspend that is generated by dividing education expenditures by income
5. Examine the distribution of this variable using two-three relevant statistics and paste the results in your answer.
6. Also plot two-three relevant plot functions and paste the plots in your answer
7. In your view, is this variable normally distributed?
8. Add the relspend variable to the Anscombe dataset
9. Extract all columns into a new data frame called hispenders that include the states that are above the median of relspend