Question: Use R studio Lab 3 Homework 1. Create a data list, 'n' consisting of the numbers: 5, 9, 14, 28, 31, 1, 31, 14, 38,

 Use R studioLab 3 Homework1. Create a data list, 'n' consisting

Use R studio

Lab 3 Homework

1. Create a data list, 'n' consisting of the numbers: 5, 9, 14, 28, 31, 1, 31, 14, 38, 31 Use R - code to find the following: a. Find the mean using a different method that does not involve the mean () function.

b. Find the median.

c. Create a frequency table of the data list and then give the mode.

d. Create a bar graph of the data list.

2. Import the csv file 'Campus Crime' and assign to the vector 'crime'.

a. Find the dimensions of the 'crime' data frame. b. Find the values in the 'Total.Enrollment' column only.

3. For the 'Number.of.Crimes.' variable:

(a) Find the mean.

(b) Find the median.

4. For the 'Number.Of.Police' variable:

(a) Find the variance

(b) Find the standard deviation.

5. Choose one discrete quantitative variable from the 'crime' data frame.

(a) Then make a frequency table. (b) Then visualize into a bar graph.

6. Is the variable 'Private.School' quantitative or qualitative? Explain.

7. Using R - code, find the number of components in the 'Total.Enrollment' variable.

8. Is the variable 'Number of Police' a discrete or continuous variable? Explain.

9. Get a five - number summary of the 'Number.Of.Police' variable.

10. Get a five - number summary of the entire 'crime' data frame.

of the numbers: 5, 9, 14, 28, 31, 1, 31, 14, 38,31 Use R - code to find the following: a. Find the

\fVariable Name Ids bday enrolldate expgradate Rank Major Gender Athlete Height Weight Smoking Sprint MileMinDur English Reading Math Writing State LiveOnCampus HowCommute CommuteTime SleepTlme StudyTime Description ID number Date of birth (mm/dd/yyyy) Date of college enrollment (mm/dd/yyyy) Expected date of college graduation (mm/dd/yyyy) Class rank Major Gender ls student an athlete? Height (inches) Weight (pounds) Does student smoke? 35-meter sprint time (seconds) Mile run time (hh:mm:ss) Score on English placement test (out of 100 points) Score on Reading placement test (out of 100 points) Score on Math placement test (out of 100 points) Score on Writing placement test (out of 100 points) Is student in-state or out-of-state resident? Does student live on campus? How does student commute to campus? How long does it take you to commute to campus? (minutes) About how many hours of sleep do you get per night? About how many hours per week do you study? Type (In Data File) Numeric Date, mm/dd/yyyy String String Numeric String Numeric Numeric Numeric Numeric Numeric Numeric Datetime Numeric Numeric Numeric Numeric String Numeric Numeric Numeric Numeric Numeric Measure (Actual) Nominal Scale Scale Scale Ordinal Nominal Nominal Nominal Scale Scale Nominal Scale Scale Scale Scale Scale Scale Nominal Nominal Nominal Scale Scale Scale Student Sample Dataset Codebook Value labels 1=Freshman 2=Sophomore 3=Junior 4=Senior 0=Male 1=Female 0 = Non-athlete 1 = Athlete 0 = Nonsmoker 1 = Past smoker 2 = Current smoker 0 = Off-campus 1 = On-campus 1 = Walk 2 = Bike 3 = Car 4 = Public transit 5 = Other

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 Mathematics Questions!