The Federal Bureau of Investigation (FBI), as part of its internal security mission, serves as a database for all the reported crimes committed in the United States. One question that might be of interest is does having more police officers reduce the number of homicides? To investigate this claim, the 2013 data from the twenty largest municipal cities was supplied by the FBI's Uniform Crime Report. Below are two observations from the dataset: > head (cities) City Pop Homicides Police Density MedHome Mayor 1 New York 8175.133 335 4.2595 27016.30 5.5390 2 Chicago 2695.598 414 4.4309 11843.58 1.8310 1 The variables included in the study are: Name of city Population of city in 1,000s of people Number of homicides in the year 2013 Number of police officers per 1,000 people Number of people per square mile Median home price in $100,000 1 if city has a “Strong Mayor" form of government; 0 if not City Рop Homicides Police Density MedHome Мayor Model: log(µ;) = Bo + B1Police; + B2MedHome; + B3I(Mayor;) +log(Pop;) mod1 glm (Homicides * Police + MedHome + Mayor, family=poisson, offset=log(Pop)) Coefficients: Estimate Std. Error z value Pr(>|z|) (Intercept) -2.19745 0.35530 -6.185 1.31e-05 Police 0.05424 0.11390 0.476 0.640352 i MedHome -0.28076 0.05630 -4.987 0.000134 Мayor 0.60000 0.31171 1.925 0.072219 (Dispersion parameter for poisson family taken to be 1)
The Federal Bureau of Investigation (FBI), as part of its internal security mission, serves as a database for all the reported crimes committed in the United States. One question that might be of interest is does having more police officers reduce the number of homicides? To investigate this claim, the 2013 data from the twenty largest municipal cities was supplied by the FBI's Uniform Crime Report. Below are two observations from the dataset: > head (cities) City Pop Homicides Police Density MedHome Mayor 1 New York 8175.133 335 4.2595 27016.30 5.5390 2 Chicago 2695.598 414 4.4309 11843.58 1.8310 1 The variables included in the study are: Name of city Population of city in 1,000s of people Number of homicides in the year 2013 Number of police officers per 1,000 people Number of people per square mile Median home price in $100,000 1 if city has a “Strong Mayor" form of government; 0 if not City Рop Homicides Police Density MedHome Мayor Model: log(µ;) = Bo + B1Police; + B2MedHome; + B3I(Mayor;) +log(Pop;) mod1 glm (Homicides * Police + MedHome + Mayor, family=poisson, offset=log(Pop)) Coefficients: Estimate Std. Error z value Pr(>|z|) (Intercept) -2.19745 0.35530 -6.185 1.31e-05 Police 0.05424 0.11390 0.476 0.640352 i MedHome -0.28076 0.05630 -4.987 0.000134 Мayor 0.60000 0.31171 1.925 0.072219 (Dispersion parameter for poisson family taken to be 1)
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
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps
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