5. Choose one discrete quantitative variable from the 'crime' data frame. (a) Then make a frequency table. (b) Then visualize into a bar graph. Use Rstudio you have to do the manual method
5. Choose one discrete quantitative variable from the 'crime' data frame. (a) Then make a frequency table. (b) Then visualize into a bar graph. Use Rstudio you have to do the manual method
MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
Related questions
Question
5. Choose one discrete quantitative variable from the 'crime' data frame.
(a) Then make a frequency table.
(b) Then visualize into a bar graph.
Use Rstudio
you have to do the manual method

Transcribed Image Text:Here is the transcribed data for the table titled "Campus_Crime":
| Number of Crimes | Number of Police | Total Enrollment | Private School |
|------------------|------------------|------------------|----------------|
| 64 | 12 | 1,131 | 1 |
| 138 | 21 | 12,954 | 0 |
| 141 | 32 | 16,009 | 0 |
| 84 | 22 | 1,682 | 1 |
| 86 | 35 | 2,888 | 1 |
| 141 | 45 | 17,407 | 0 |
| 135 | 42 | 3,028 | 1 |
| 174 | 50 | 4,306 | 1 |
| 201 | 75 | 34,511 | 0 |
| 203 | 84 | 37,240 | 0 |
| 125 | 36 | 2,918 | 1 |
| 234 | 109 | 39,414 | 0 |
| 143 | 45 | 4,000 | 1 |
| 148 | 50 | 20,950 | 0 |
| 152 | 48 | 4,277 | 1 |
| 158 | 52 | 26,519 | 0 |
| 174 | 69 | 27,687 | 0 |
| 84 | 26 | 2,810 | 1 |
| 173 | 58 | 27,619 | 0 |
| 193 | 56 | 4,563 | 1 |
**Table Explanation:**
- **Number of Crimes**: The reported number of crimes on campus.
- **Number of Police**: Police personnel assigned on campus.
- **Total Enrollment**: The total number of students enrolled.
- **Private School**: Indicator if the school is private (1 for Yes, 0 for No).

Transcribed Image Text:**Student Sample Dataset Codebook**
This dataset consists of various attributes related to students and their academic and personal details. Below are the variable descriptions, types, measures, and any associated value labels:
- **ids**
- **Description:** ID number
- **Type:** Numeric
- **Measure:** Nominal
- **bday**
- **Description:** Date of birth (mm/dd/yyyy)
- **Type:** Date, mm/dd/yyyy
- **Measure:** Scale
- **enrolldate**
- **Description:** Date of college enrollment (mm/dd/yyyy)
- **Type:** String
- **Measure:** Scale
- **expgradate**
- **Description:** Expected date of college graduation (mm/dd/yyyy)
- **Type:** String
- **Measure:** Scale
- **Rank**
- **Description:** Class rank
- **Type:** Numeric
- **Measure:** Ordinal
- **Value Labels:** 1=Freshman, 2=Sophomore, 3=Junior, 4=Senior
- **Major**
- **Description:** Major
- **Type:** String
- **Measure:** Nominal
- **Gender**
- **Description:** Gender
- **Type:** Numeric
- **Measure:** Nominal
- **Value Labels:** 0=Male, 1=Female
- **Athlete**
- **Description:** Is student an athlete?
- **Type:** Numeric
- **Measure:** Nominal
- **Value Labels:** 0 = Non-athlete, 1 = Athlete
- **Height**
- **Description:** Height (inches)
- **Type:** Numeric
- **Measure:** Scale
- **Weight**
- **Description:** Weight (pounds)
- **Type:** Numeric
- **Measure:** Scale
- **Smoking**
- **Description:** Does student smoke?
- **Type:** Numeric
- **Measure:** Nominal
- **Value Labels:** 0 = Nonsmoker, 1 = Past smoker, 2 = Current smoker
- **Sprint**
- **Description:** 35-meter sprint time (seconds)
- **Type:** Numeric
- **Measure:** Scale
- **MileMinDur**
- **Description:** Mile run time (
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images

Recommended textbooks for you

MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc

Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning

Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning

MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc

Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning

Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning

Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON

The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman

Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman