github github
  • Pricing and Signup
  • Explore GitHub
  • Features
  • Blog
  • Login

diegovalle / Assault-Weapons

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
    • 2
    • 1
  • Source
  • Commits
  • Network
  • Pull Requests (0)
  • Issues (0)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Switch Branches (1)
    • master ✓
  • Switch Tags (0)
  • Branch List
Sending Request…
Downloads

Effect of the assault weapon ban expiration on Mexico — Read more

  Cancel

http://blog.diegovalle.net/2010/09/how-expiration-of-assault-weapon-ban.html

  Cancel
  • HTTP
  • Git Read-Only

This URL has Read+Write access

Assault-Weapons /

Dismiss Octotip: You've activated the file finder by pressing t Start typing to filter the file list. Use ↑ and ↓ to navigate, enter to view files.

 name
No matching files

Jump to Line

utf-8 versions 
diegovalle (author)
Thu Nov 11 17:03:00 -0800 2010
commit  4147a5a96f8cb94eba8f
tree    1a7ca7e8718daf545ac7
parent  ff6d5ca1a65f420325c9
Assault-Weapons / reports / report.txt reports/report.txt
  • Edit this file
Txt 100644 98 lines (79 sloc) 3.342 kb
  • raw
  • blame
  • history
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
***Zero inflated poisson Model without a breakpoint:***
Call:
zeroinfl(formula = V1 ~ daynum, data = awb.lar)

Pearson residuals:
    Min 1Q Median 3Q Max
-0.3672 -0.3230 -0.2850 -0.2482 13.5661

Count model coefficients (poisson with log link):
              Estimate Std. Error z value Pr(>|z|)
(Intercept) -0.3233952 0.1691332 -1.912 0.0559 .
daynum -0.0003241 0.0005245 -0.618 0.5366

Zero-inflation model coefficients (binomial with logit link):
             Estimate Std. Error z value Pr(>|z|)
(Intercept) 1.274648 0.204328 6.238 4.43e-10 ***
daynum -0.001549 0.000674 -2.298 0.0216 *
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

Number of iterations in BFGS optimization: 15
Log-likelihood: -336.2 on 4 Df

---
***Zero inflated poisson Model with a breakpoint corresponding to the expiration of the assault weapon ban:***
Call:
zeroinfl(formula = V1 ~ awb/daynum, data = awb.lar)

Pearson residuals:
    Min 1Q Median 3Q Max
-0.5585 -0.3072 -0.2559 -0.2117 12.4700

Count model coefficients (poisson with log link):
                  Estimate Std. Error z value Pr(>|z|)
(Intercept) 0.1335902 0.5253115 0.254 0.799
awbTRUE -0.7648132 0.8413005 -0.909 0.363
awbFALSE:daynum 0.0008780 0.0016418 0.535 0.593
awbTRUE:daynum 0.0007345 0.0032309 0.227 0.820

Zero-inflation model coefficients (binomial with logit link):
                 Estimate Std. Error z value Pr(>|z|)
(Intercept) 2.702555 0.530950 5.090 3.58e-07 ***
awbTRUE -0.602907 0.963816 -0.626 0.5316
awbFALSE:daynum 0.002767 0.001712 1.616 0.1061
awbTRUE:daynum -0.009344 0.004572 -2.044 0.0410 *
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

Number of iterations in BFGS optimization: 18
Log-likelihood: -325.7 on 8 Df

---

----
***Comparing zero inflated poisson model to normal poisson without a breakpoint:***
Vuong Non-Nested Hypothesis Test-Statistic: -2.528253
(test-statistic is asymptotically distributed N(0,1) under the
 null that the models are indistinguishible)
in this case:
model2 > model1, with p-value 0.005731591

---
***Comparing zero inflated poisson model to normal poisson with a breakpoint:***
Vuong Non-Nested Hypothesis Test-Statistic: -2.521703
(test-statistic is asymptotically distributed N(0,1) under the
 null that the models are indistinguishible)
in this case:
model2 > model1, with p-value 0.005839407

---

---
***Likelihood ratio test comparing the zero inflated models with and
 without breakpoint***Likelihood ratio test

Model 1: V1 ~ daynum
Model 2: V1 ~ awb/daynum
  #Df LogLik Df Chisq Pr(>Chisq)
1 4 -336.21
2 8 -325.69 4 21.032 0.0003121 ***
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Vuong Non-Nested Hypothesis Test-Statistic: -1.54627
(test-statistic is asymptotically distributed N(0,1) under the
 null that the models are indistinguishible)
in this case:
model2 > model1, with p-value 0.0610197
Vuong Non-Nested Hypothesis Test-Statistic: -1.772001
(test-statistic is asymptotically distributed N(0,1) under the
 null that the models are indistinguishible)
in this case:
model2 > model1, with p-value 0.03819723
......


 Rrrr! Avast Ye, YO HO!


Dedicated Server Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
  • Blog
  • Support
  • Training
  • Job Board
  • Shop
  • Contact
  • API
  • Status
  • © 2011 GitHub Inc. All rights reserved.
  • Terms of Service
  • Privacy
  • Security

Keyboard Shortcuts (see all)

Site wide shortcuts

s
Focus site search
?
Bring up this help dialog

Commit list

j
Move selected down
k
Move selected up
t
Open tree
p
Open parent
c or o or enter
Open commit
y
Expand URL to its canonical form

Pull request list

j
Move selected down
k
Move selected up
o or enter
Open issue

Issues

j
Move selected down
k
Move selected up
x
Toggle select target
o or enter
Open issue
I
Mark selected as read
U
Mark selected as unread
e
Close selected
y
Remove selected from view
c
Create issue
l
Create label
i
Back to inbox
u
Back to issues
/
Focus issues search

Network Graph

← or h
Scroll left
→ or l
Scroll right
↑ or k
Scroll up
↓ or j
Scroll down
t
Toggle visibility of head labels
shift ← or shift h
Scroll all the way left
shift → or shift l
Scroll all the way right
shift ↑ or shift k
Scroll all the way up
shift ↓ or shift j
Scroll all the way down

Source Code Browsing

t
Activates the file finder
l
Jump to line
y
Expand URL to its canonical form