Question: Using the project batrap 4 _ class.RData that you created in Assignment # 0 , verify ( using the sum command with the na .

Using the project batrap4_class.RData that you created in Assignment #0, verify (using the sum command with the na.rm=T option) that the sum of the study column is equal to 1364.2, and that the sum of the gender column is equal to 534.
(Note that this check is to make sure that you are using the correct personalized class data set, and that the data used for this question has not been inadvertently altered.)
Work through this example on R, and then do the following:
Using the project batrap4_class.RData that you created in Assignment #0, make histograms (2 in total) for the time spent studying (study) for each gender (the gender variable gives the gender, 1= female, 2= male) using the intervals 0-1,1-2,2-3,3-4,4-5,5-6,6-7,7-8,8-9,9-10. Make sure that the tickmarks on the x-axis are at the cutpoints and be sure to label the heights of all of the bars.
Do not submit the histograms, but instead answer the following questions based on the histograms.
(a) Enter the first eight values of the heights of the bars for males (in order from left to right) separated by commas. For example, if your histograms looked like the histogram for males in this example then you would enter the following numbers into the answer box (note that spaces don't matter):
0,1,9,17,12,8,2,1
(b) What percentage of the females study at least 3 hours per day, on average?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!