Question: What statistical test (ANOVA, linear regression, logistic regression, t-test, etc) would be most suitable for the below problem Loading the data For this problem we
What statistical test (ANOVA, linear regression, logistic regression, t-test, etc) would be most suitable for the below problem

Loading the data For this problem we will be using the SleepStudy dataset from the Lock5Data package. Load the data into your environment by the running the following lines in a code chunk library (Lock5Data) data ("SleepStudy") You may find an error if you don't have the Lock5Data package installed already - in that case please follow the steps in the instructions to install the package. Once you're done rerun the code chunk above and it should work. To double check that you're using the correct dataset and that it has loaded properly run the following code and check if you get the same output as given below dim (SleepStudy) ## [1] 253 27 head (SleepStudy) [, 1:7] ## Gender ClassYear LarkOwl NumEarlyClass EarlyClass GPA ClassesMissed ## 1 4 Neither 0 0 3. 60 ## 2 4 Neither 1 3.24 O ## 3 Owl 0 2.97 12 ## 4 Lark OOMON 1 3.76 ## 5 HO 0 3.20 ODO ## 6 4 Neither 0 3.50 Note that this is actually the same SleepStudy dataset we used in HW9. At the top of the HW9 file you'll find a description of the variables (columns) in this dataset. We wish to test if AlcoholUse among students depends on their ClassYear. 4.1) [1 point] Which method should be used to do this test? 4.2) [1 point] State the corresponding null and alternative hypotheses
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
