hw2 of stat404

Please submit (1) your R-script (name.R) that includes the commands you use to answer these questions and (2) a text file containing your typed answers to each question. For example, if the question asks for you to run a regression, your R-script should include the command that does so, while your typed answer should include a professionally formatted regression table (do not simply copy and paste R outputs).