library(tidyverse)
## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
## ✔ dplyr     1.2.1     ✔ readr     2.2.0
## ✔ forcats   1.0.1     ✔ stringr   1.6.0
## ✔ ggplot2   4.0.3     ✔ tibble    3.3.1
## ✔ lubridate 1.9.5     ✔ tidyr     1.3.2
## ✔ purrr     1.2.2     
## ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
## ✖ dplyr::filter() masks stats::filter()
## ✖ dplyr::lag()    masks stats::lag()
## ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
library(readxl)
library(dplyr)
ice_tx_arrests_final<-readRDS("cleaned_ice_dataset.Rdata")
ice_tx_arrests_final <- ice_tx_arrests_final|> select(case_threat_level, citizenship_country, age_at_apprehension_approximate, apprehension_aor)
summary(ice_tx_arrests_final)
##  case_threat_level citizenship_country age_at_apprehension_approximate
##  Min.   :0.0000    Length   :142906    Min.   :  1.00                 
##  1st Qu.:0.0000    N.unique :   165    1st Qu.: 27.00                 
##  Median :0.0000    N.blank  :     0    Median : 34.00                 
##  Mean   :0.7175    Min.nchar:     4    Mean   : 35.57                 
##  3rd Qu.:1.0000    Max.nchar:    31    3rd Qu.: 43.00                 
##  Max.   :3.0000                        Max.   :126.00                 
##  NAs    :2833                                                         
##   apprehension_aor 
##  Length   :142906  
##  N.unique :     5  
##  N.blank  :     0  
##  Min.nchar:    29  
##  Max.nchar:    34  
##                    
## 
ice_model_data<-ice_tx_arrests_final |>select(case_threat_level, citizenship_country, age_at_apprehension_approximate, apprehension_aor)
ice_linear<-lm(case_threat_level~citizenship_country+age_at_apprehension_approximate+apprehension_aor, data=ice_model_data)
summary(ice_linear)
## 
## Call:
## lm(formula = case_threat_level ~ citizenship_country + age_at_apprehension_approximate + 
##     apprehension_aor, data = ice_model_data)
## 
## Residuals:
##     Min      1Q  Median      3Q     Max 
## -2.3030 -0.7643 -0.4807  0.4153  3.1936 
## 
## Coefficients:
##                                                      Estimate Std. Error
## (Intercept)                                         0.5633451  0.1115404
## citizenship_countryALBANIA                         -0.5170614  0.3113147
## citizenship_countryALGERIA                         -0.4531474  0.3615868
## citizenship_countryANGOLA                          -0.5060692  0.2047940
## citizenship_countryANTIGUA-BARBUDA                  0.2097737  1.0937819
## citizenship_countryARGENTINA                       -0.1997856  0.1897914
## citizenship_countryARMENIA                         -0.5269202  0.4579115
## citizenship_countryAUSTRALIA                        0.8173396  0.4579219
## citizenship_countryAZERBAIJAN                       1.3223961  0.3113105
## citizenship_countryBAHAMAS                          0.2034612  0.3331869
## citizenship_countryBANGLADESH                      -0.2433127  0.2526182
## citizenship_countryBARBADOS                        -0.9477828  0.6379853
## citizenship_countryBELARUS                         -0.9828859  0.3793332
## citizenship_countryBELGIUM                         -0.0993100  0.5552979
## citizenship_countryBELIZE                          -0.5906562  0.1724921
## citizenship_countryBENIN                           -0.7148733  0.3793352
## citizenship_countryBHUTAN                          -0.3835394  0.4991578
## citizenship_countryBOLIVIA                          0.0839148  0.1820051
## citizenship_countryBOSNIA-HERZEGOVINA               0.0106246  0.6379964
## citizenship_countryBRAZIL                          -0.0570940  0.1422686
## citizenship_countryBULGARIA                        -0.1332466  0.7774067
## citizenship_countryBURKINA FASO                    -0.6432889  0.3215988
## citizenship_countryBURMA                           -0.0593966  0.2221344
## citizenship_countryBURUNDI                         -0.3275084  0.4260178
## citizenship_countryCAMBODIA                        -0.0918556  0.2572655
## citizenship_countryCAMEROON                        -0.6974530  0.1498559
## citizenship_countryCANADA                          -0.4285775  0.1910606
## citizenship_countryCAPE VERDE                      -1.2660839  1.0938545
## citizenship_countryCHAD                            -0.8604745  0.7774155
## citizenship_countryCHILE                           -0.3709709  0.1664763
## citizenship_countryCHINA, PEOPLES REPUBLIC OF      -0.3659452  0.1194538
## citizenship_countryCOLOMBIA                        -0.5393782  0.1130981
## citizenship_countryCONGO                           -0.5547302  0.2863387
## citizenship_countryCOSTA RICA                      -0.2261098  0.1809770
## citizenship_countryCROATIA                         -0.9603873  1.0937813
## citizenship_countryCUBA                            -0.5130465  0.1122389
## citizenship_countryDEM REP OF THE CONGO            -0.2127405  0.2148675
## citizenship_countryDJIBOUTI                        -0.8185865  1.0937802
## citizenship_countryDOMINICA                         0.4700638  0.6379818
## citizenship_countryDOMINICAN REPUBLIC               0.0406421  0.1476983
## citizenship_countryECUADOR                          0.0023470  0.1159295
## citizenship_countryEGYPT                           -0.5708779  0.1625986
## citizenship_countryEL SALVADOR                     -0.1980218  0.1119316
## citizenship_countryEQUATORIAL GUINEA               -0.5728449  0.1997613
## citizenship_countryERITREA                         -0.5238520  0.2085470
## citizenship_countryETHIOPIA                        -0.4584464  0.2938365
## citizenship_countryFINLAND                         -0.3348038  0.7773983
## citizenship_countryFRANCE                           0.5597061  0.3615868
## citizenship_countryGABON                            0.0668997  0.4004265
## citizenship_countryGAMBIA                           0.1395255  1.0937883
## citizenship_countryGEORGIA                         -0.4433831  0.2674769
## citizenship_countryGERMANY                         -0.6478388  0.3615904
## citizenship_countryGHANA                           -0.1597315  0.2030159
## citizenship_countryGREECE                          -0.0805919  0.7774154
## citizenship_countryGRENADA                          0.0022340  0.6379859
## citizenship_countryGUATEMALA                       -0.1582796  0.1115557
## citizenship_countryGUINEA                          -0.5063556  0.2572011
## citizenship_countryGUINEA-BISSAU                   -0.7363885  0.5552856
## citizenship_countryGUYANA                          -0.5837925  0.4991637
## citizenship_countryHAITI                           -0.3316843  0.1587664
## citizenship_countryHONDURAS                        -0.1803540  0.1113692
## citizenship_countryHONG KONG                       -0.8316712  0.7774333
## citizenship_countryHUNGARY                         -0.8433085  0.3215772
## citizenship_countryINDIA                           -0.4810238  0.1189513
## citizenship_countryINDONESIA                       -0.8269649  0.2066349
## citizenship_countryIRAN                             0.0485799  0.1490162
## citizenship_countryIRAQ                            -0.1428378  0.2305779
## citizenship_countryIRELAND                          0.4064309  0.5552856
## citizenship_countryISRAEL                          -0.3446422  0.2526160
## citizenship_countryITALY                           -0.9201977  0.2938298
## citizenship_countryIVORY COAST                     -0.5996120  0.3215916
## citizenship_countryJAMAICA                         -0.4369092  0.1898396
## citizenship_countryJAPAN                           -0.5874474  0.6379751
## citizenship_countryJORDAN                          -0.5966108  0.1490176
## citizenship_countryKAZAKHSTAN                      -0.7122061  0.3215980
## citizenship_countryKENYA                            0.0753160  0.1781933
## citizenship_countryKOREA                           -0.5308127  0.4991801
## citizenship_countryKOSOVO                          -0.8324157  0.4578950
## citizenship_countryKUWAIT                          -0.3451080  0.7774130
## citizenship_countryKYRGYZSTAN                      -0.6708397  0.3331709
## citizenship_countryLAOS                            -0.1038372  0.1863116
## citizenship_countryLATVIA                          -0.5771209  0.4991346
## citizenship_countryLEBANON                         -0.4154282  0.3463896
## citizenship_countryLIBERIA                          0.0406436  0.3464027
## citizenship_countryLIBYA                           -0.5136744  0.4991485
## citizenship_countryMACAU                           -1.1431899  1.0938395
## citizenship_countryMALAWI                          -0.9198843  0.7773968
## citizenship_countryMALAYSIA                        -0.3571244  0.4578969
## citizenship_countryMALI                            -0.3400262  0.3615735
## citizenship_countryMARSHALL ISLANDS                -1.0265610  1.0937871
## citizenship_countryMAURITANIA                      -0.8436823  0.2526326
## citizenship_countryMEXICO                          -0.0465654  0.1111791
## citizenship_countryMICRONESIA, FEDERATED STATES OF  0.9339314  0.4579081
## citizenship_countryMOLDOVA                         -1.0185414  0.4579116
## citizenship_countryMONGOLIA                        -0.9194226  0.6379832
## citizenship_countryMONTENEGRO                      -0.9204854  0.6379851
## citizenship_countryMOROCCO                          0.3935329  0.2621576
## citizenship_countryMOZAMBIQUE                      -1.2136004  0.7774231
## citizenship_countryNAMIBIA                         -0.9178471  0.7774028
## citizenship_countryNEPAL                           -0.4105284  0.1327430
## citizenship_countryNETHERLANDS                      0.1183880  0.4579005
## citizenship_countryNEW ZEALAND                      2.0112525  1.0937834
## citizenship_countryNICARAGUA                       -0.5400662  0.1126762
## citizenship_countryNIGER                            0.3619477  0.3215905
## citizenship_countryNIGERIA                         -0.3610161  0.1282832
## citizenship_countryNORTH MACEDONIA                  0.2948980  0.6379897
## citizenship_countryPAKISTAN                        -0.2301342  0.1432219
## citizenship_countryPALAU                            1.1674990  0.4991404
## citizenship_countryPALESTINE BORN BEFORE 1948      -0.8564001  1.0937789
## citizenship_countryPANAMA                          -0.3255807  0.2105586
## citizenship_countryPAPUA NEW GUINEA                -0.9171948  1.0937874
## citizenship_countryPARAGUAY                        -0.9256296  0.5552981
## citizenship_countryPERU                            -0.4647502  0.1211229
## citizenship_countryPHILIPPINES                     -0.2600157  0.2306054
## citizenship_countryPOLAND                          -0.3036627  0.3216039
## citizenship_countryPORTUGAL                        -0.5704141  0.3463945
## citizenship_countryROMANIA                         -0.1672139  0.1375382
## citizenship_countryRUSSIA                          -0.5897491  0.1636316
## citizenship_countryRWANDA                          -0.5231005  0.3793464
## citizenship_countrySAMOA                            1.0071781  1.0937901
## citizenship_countrySAO TOME AND PRINCIPE            1.0099303  1.0937782
## citizenship_countrySAUDI ARABIA                    -0.0408167  0.4579022
## citizenship_countrySENEGAL                         -0.8694436  0.2276096
## citizenship_countrySERBIA                          -0.9843513  0.5552856
## citizenship_countrySIERRA LEONE                    -0.5320063  0.3793516
## citizenship_countrySINGAPORE                        0.9923458  1.0937851
## citizenship_countrySLOVAKIA                        -1.0684490  0.7774282
## citizenship_countrySLOVENIA                        -0.0882313  0.6379791
## citizenship_countrySOMALIA                          0.1636871  0.4260108
## citizenship_countrySOUTH AFRICA                    -0.1800688  0.2938414
## citizenship_countrySOUTH KOREA                     -0.2979329  0.2732767
## citizenship_countrySOUTH SUDAN                      0.0355383  1.0937886
## citizenship_countrySPAIN                           -0.5580848  0.1748140
## citizenship_countrySRI LANKA                       -0.8610493  0.1637180
## citizenship_countryST. KITTS-NEVIS                 -0.4928219  0.7774181
## citizenship_countryST. LUCIA                       -0.6761198  0.6379688
## citizenship_countryST. VINCENT-GRENADINES          -0.1346227  1.0938072
## citizenship_countrySTATELESS                       -0.8199934  0.3113080
## citizenship_countrySUDAN                            0.3758361  0.2483406
## citizenship_countrySWEDEN                          -0.2446610  0.7774413
## citizenship_countrySYRIA                            0.4194620  0.2794950
## citizenship_countryTAIWAN                          -0.8135470  0.2406274
## citizenship_countryTAJIKISTAN                      -0.9364564  0.4260059
## citizenship_countryTANZANIA                         0.1743445  0.3021111
## citizenship_countryTHAILAND                        -0.5114056  0.3215951
## citizenship_countryTOGO                            -0.8818527  0.4004329
## citizenship_countryTONGA                            0.5513479  0.7774363
## citizenship_countryTRINIDAD AND TOBAGO              0.2183640  0.4260408
## citizenship_countryTUNISIA                         -0.4390282  0.4260153
## citizenship_countryTURKIYE                         -0.4955420  0.1469229
## citizenship_countryTURKMENISTAN                    -0.8799031  0.4991466
## citizenship_countryUGANDA                          -0.1113499  0.4260098
## citizenship_countryUKRAINE                         -0.3677052  0.2305806
## citizenship_countryUNITED ARAB EMIRATES            -0.9455550  1.0937879
## citizenship_countryUNITED KINGDOM                  -0.6357190  0.2126710
## citizenship_countryUNKNOWN                         -0.0488468  0.3793401
## citizenship_countryURUGUAY                         -0.2544094  0.3215889
## citizenship_countryUZBEKISTAN                      -0.5221534  0.1732371
## citizenship_countryVENEZUELA                       -0.6546115  0.1115603
## citizenship_countryVIETNAM                          0.0354662  0.1229983
## citizenship_countryYEMEN                           -0.6300854  0.4004299
## citizenship_countryYUGOSLAVIA                      -0.0265610  1.0937871
## citizenship_countryZAMBIA                           0.0140005  0.4004473
## citizenship_countryZIMBABWE                        -0.2077300  0.1885812
## age_at_apprehension_approximate                     0.0094534  0.0002759
## apprehension_aorEl Paso Area of Responsibility      0.1828026  0.0131234
## apprehension_aorHarlingen Area of Responsibility   -0.3102602  0.0092688
## apprehension_aorHouston Area of Responsibility      0.0135278  0.0085551
## apprehension_aorSan Antonio Area of Responsibility  0.1903900  0.0087137
##                                                    t value Pr(>|t|)    
## (Intercept)                                          5.051 4.41e-07 ***
## citizenship_countryALBANIA                          -1.661 0.096737 .  
## citizenship_countryALGERIA                          -1.253 0.210128    
## citizenship_countryANGOLA                           -2.471 0.013470 *  
## citizenship_countryANTIGUA-BARBUDA                   0.192 0.847909    
## citizenship_countryARGENTINA                        -1.053 0.292499    
## citizenship_countryARMENIA                          -1.151 0.249856    
## citizenship_countryAUSTRALIA                         1.785 0.074282 .  
## citizenship_countryAZERBAIJAN                        4.248 2.16e-05 ***
## citizenship_countryBAHAMAS                           0.611 0.541431    
## citizenship_countryBANGLADESH                       -0.963 0.335467    
## citizenship_countryBARBADOS                         -1.486 0.137391    
## citizenship_countryBELARUS                          -2.591 0.009568 ** 
## citizenship_countryBELGIUM                          -0.179 0.858063    
## citizenship_countryBELIZE                           -3.424 0.000617 ***
## citizenship_countryBENIN                            -1.885 0.059494 .  
## citizenship_countryBHUTAN                           -0.768 0.442267    
## citizenship_countryBOLIVIA                           0.461 0.644758    
## citizenship_countryBOSNIA-HERZEGOVINA                0.017 0.986713    
## citizenship_countryBRAZIL                           -0.401 0.688191    
## citizenship_countryBULGARIA                         -0.171 0.863910    
## citizenship_countryBURKINA FASO                     -2.000 0.045472 *  
## citizenship_countryBURMA                            -0.267 0.789169    
## citizenship_countryBURUNDI                          -0.769 0.442033    
## citizenship_countryCAMBODIA                         -0.357 0.721058    
## citizenship_countryCAMEROON                         -4.654 3.26e-06 ***
## citizenship_countryCANADA                           -2.243 0.024889 *  
## citizenship_countryCAPE VERDE                       -1.157 0.247090    
## citizenship_countryCHAD                             -1.107 0.268365    
## citizenship_countryCHILE                            -2.228 0.025857 *  
## citizenship_countryCHINA, PEOPLES REPUBLIC OF       -3.063 0.002188 ** 
## citizenship_countryCOLOMBIA                         -4.769 1.85e-06 ***
## citizenship_countryCONGO                            -1.937 0.052708 .  
## citizenship_countryCOSTA RICA                       -1.249 0.211527    
## citizenship_countryCROATIA                          -0.878 0.379922    
## citizenship_countryCUBA                             -4.571 4.86e-06 ***
## citizenship_countryDEM REP OF THE CONGO             -0.990 0.322126    
## citizenship_countryDJIBOUTI                         -0.748 0.454219    
## citizenship_countryDOMINICA                          0.737 0.461246    
## citizenship_countryDOMINICAN REPUBLIC                0.275 0.783186    
## citizenship_countryECUADOR                           0.020 0.983848    
## citizenship_countryEGYPT                            -3.511 0.000447 ***
## citizenship_countryEL SALVADOR                      -1.769 0.076874 .  
## citizenship_countryEQUATORIAL GUINEA                -2.868 0.004136 ** 
## citizenship_countryERITREA                          -2.512 0.012009 *  
## citizenship_countryETHIOPIA                         -1.560 0.118713    
## citizenship_countryFINLAND                          -0.431 0.666707    
## citizenship_countryFRANCE                            1.548 0.121645    
## citizenship_countryGABON                             0.167 0.867314    
## citizenship_countryGAMBIA                            0.128 0.898496    
## citizenship_countryGEORGIA                          -1.658 0.097390 .  
## citizenship_countryGERMANY                          -1.792 0.073193 .  
## citizenship_countryGHANA                            -0.787 0.431404    
## citizenship_countryGREECE                           -0.104 0.917434    
## citizenship_countryGRENADA                           0.004 0.997206    
## citizenship_countryGUATEMALA                        -1.419 0.155948    
## citizenship_countryGUINEA                           -1.969 0.048988 *  
## citizenship_countryGUINEA-BISSAU                    -1.326 0.184794    
## citizenship_countryGUYANA                           -1.170 0.242188    
## citizenship_countryHAITI                            -2.089 0.036697 *  
## citizenship_countryHONDURAS                         -1.619 0.105358    
## citizenship_countryHONG KONG                        -1.070 0.284727    
## citizenship_countryHUNGARY                          -2.622 0.008732 ** 
## citizenship_countryINDIA                            -4.044 5.26e-05 ***
## citizenship_countryINDONESIA                        -4.002 6.28e-05 ***
## citizenship_countryIRAN                              0.326 0.744422    
## citizenship_countryIRAQ                             -0.619 0.535603    
## citizenship_countryIRELAND                           0.732 0.464212    
## citizenship_countryISRAEL                           -1.364 0.172478    
## citizenship_countryITALY                            -3.132 0.001738 ** 
## citizenship_countryIVORY COAST                      -1.865 0.062252 .  
## citizenship_countryJAMAICA                          -2.301 0.021367 *  
## citizenship_countryJAPAN                            -0.921 0.357156    
## citizenship_countryJORDAN                           -4.004 6.24e-05 ***
## citizenship_countryKAZAKHSTAN                       -2.215 0.026790 *  
## citizenship_countryKENYA                             0.423 0.672541    
## citizenship_countryKOREA                            -1.063 0.287616    
## citizenship_countryKOSOVO                           -1.818 0.069079 .  
## citizenship_countryKUWAIT                           -0.444 0.657102    
## citizenship_countryKYRGYZSTAN                       -2.014 0.044064 *  
## citizenship_countryLAOS                             -0.557 0.577302    
## citizenship_countryLATVIA                           -1.156 0.247584    
## citizenship_countryLEBANON                          -1.199 0.230410    
## citizenship_countryLIBERIA                           0.117 0.906598    
## citizenship_countryLIBYA                            -1.029 0.303434    
## citizenship_countryMACAU                            -1.045 0.295971    
## citizenship_countryMALAWI                           -1.183 0.236697    
## citizenship_countryMALAYSIA                         -0.780 0.435437    
## citizenship_countryMALI                             -0.940 0.347011    
## citizenship_countryMARSHALL ISLANDS                 -0.939 0.347970    
## citizenship_countryMAURITANIA                       -3.340 0.000839 ***
## citizenship_countryMEXICO                           -0.419 0.675340    
## citizenship_countryMICRONESIA, FEDERATED STATES OF   2.040 0.041396 *  
## citizenship_countryMOLDOVA                          -2.224 0.026129 *  
## citizenship_countryMONGOLIA                         -1.441 0.149548    
## citizenship_countryMONTENEGRO                       -1.443 0.149079    
## citizenship_countryMOROCCO                           1.501 0.133324    
## citizenship_countryMOZAMBIQUE                       -1.561 0.118513    
## citizenship_countryNAMIBIA                          -1.181 0.237741    
## citizenship_countryNEPAL                            -3.093 0.001984 ** 
## citizenship_countryNETHERLANDS                       0.259 0.795987    
## citizenship_countryNEW ZEALAND                       1.839 0.065946 .  
## citizenship_countryNICARAGUA                        -4.793 1.64e-06 ***
## citizenship_countryNIGER                             1.125 0.260382    
## citizenship_countryNIGERIA                          -2.814 0.004890 ** 
## citizenship_countryNORTH MACEDONIA                   0.462 0.643917    
## citizenship_countryPAKISTAN                         -1.607 0.108093    
## citizenship_countryPALAU                             2.339 0.019336 *  
## citizenship_countryPALESTINE BORN BEFORE 1948       -0.783 0.433644    
## citizenship_countryPANAMA                           -1.546 0.122041    
## citizenship_countryPAPUA NEW GUINEA                 -0.839 0.401724    
## citizenship_countryPARAGUAY                         -1.667 0.095535 .  
## citizenship_countryPERU                             -3.837 0.000125 ***
## citizenship_countryPHILIPPINES                      -1.128 0.259518    
## citizenship_countryPOLAND                           -0.944 0.345062    
## citizenship_countryPORTUGAL                         -1.647 0.099618 .  
## citizenship_countryROMANIA                          -1.216 0.224077    
## citizenship_countryRUSSIA                           -3.604 0.000313 ***
## citizenship_countryRWANDA                           -1.379 0.167912    
## citizenship_countrySAMOA                             0.921 0.357149    
## citizenship_countrySAO TOME AND PRINCIPE             0.923 0.355831    
## citizenship_countrySAUDI ARABIA                     -0.089 0.928972    
## citizenship_countrySENEGAL                          -3.820 0.000134 ***
## citizenship_countrySERBIA                           -1.773 0.076282 .  
## citizenship_countrySIERRA LEONE                     -1.402 0.160795    
## citizenship_countrySINGAPORE                         0.907 0.364272    
## citizenship_countrySLOVAKIA                         -1.374 0.169339    
## citizenship_countrySLOVENIA                         -0.138 0.890005    
## citizenship_countrySOMALIA                           0.384 0.700807    
## citizenship_countrySOUTH AFRICA                     -0.613 0.540003    
## citizenship_countrySOUTH KOREA                      -1.090 0.275616    
## citizenship_countrySOUTH SUDAN                       0.032 0.974081    
## citizenship_countrySPAIN                            -3.192 0.001411 ** 
## citizenship_countrySRI LANKA                        -5.259 1.45e-07 ***
## citizenship_countryST. KITTS-NEVIS                  -0.634 0.526133    
## citizenship_countryST. LUCIA                        -1.060 0.289237    
## citizenship_countryST. VINCENT-GRENADINES           -0.123 0.902046    
## citizenship_countrySTATELESS                        -2.634 0.008439 ** 
## citizenship_countrySUDAN                             1.513 0.130183    
## citizenship_countrySWEDEN                           -0.315 0.752990    
## citizenship_countrySYRIA                             1.501 0.133413    
## citizenship_countryTAIWAN                           -3.381 0.000723 ***
## citizenship_countryTAJIKISTAN                       -2.198 0.027935 *  
## citizenship_countryTANZANIA                          0.577 0.563881    
## citizenship_countryTHAILAND                         -1.590 0.111788    
## citizenship_countryTOGO                             -2.202 0.027649 *  
## citizenship_countryTONGA                             0.709 0.478210    
## citizenship_countryTRINIDAD AND TOBAGO               0.513 0.608272    
## citizenship_countryTUNISIA                          -1.031 0.302756    
## citizenship_countryTURKIYE                          -3.373 0.000744 ***
## citizenship_countryTURKMENISTAN                     -1.763 0.077934 .  
## citizenship_countryUGANDA                           -0.261 0.793801    
## citizenship_countryUKRAINE                          -1.595 0.110783    
## citizenship_countryUNITED ARAB EMIRATES             -0.864 0.387327    
## citizenship_countryUNITED KINGDOM                   -2.989 0.002797 ** 
## citizenship_countryUNKNOWN                          -0.129 0.897542    
## citizenship_countryURUGUAY                          -0.791 0.428886    
## citizenship_countryUZBEKISTAN                       -3.014 0.002578 ** 
## citizenship_countryVENEZUELA                        -5.868 4.43e-09 ***
## citizenship_countryVIETNAM                           0.288 0.773081    
## citizenship_countryYEMEN                            -1.574 0.115600    
## citizenship_countryYUGOSLAVIA                       -0.024 0.980626    
## citizenship_countryZAMBIA                            0.035 0.972110    
## citizenship_countryZIMBABWE                         -1.102 0.270663    
## age_at_apprehension_approximate                     34.265  < 2e-16 ***
## apprehension_aorEl Paso Area of Responsibility      13.930  < 2e-16 ***
## apprehension_aorHarlingen Area of Responsibility   -33.474  < 2e-16 ***
## apprehension_aorHouston Area of Responsibility       1.581 0.113819    
## apprehension_aorSan Antonio Area of Responsibility  21.850  < 2e-16 ***
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## Residual standard error: 1.088 on 139904 degrees of freedom
##   (2833 observations deleted due to missingness)
## Multiple R-squared:  0.05364,    Adjusted R-squared:  0.05251 
## F-statistic: 47.21 on 168 and 139904 DF,  p-value: < 2.2e-16
  1. interpret the model’s r-squared and p-values. How much of the dependent variable does the overall model explain? What are the significant variables? What are the insignificant variables?

Both r-squared values are about 5% meaning a low variance–probbably due to the fact that there are many countries included in the dataset. I believe the p-value indicates that the null hypothesis isn’t true and that the independent values have some, nonrandom relationship with the dependent value (case threat level).

  1. Choose some significant independent variables. Interpret its Estimates (or Beta Coefficients). How do the independent variables individually affect the dependent variable?

I’m not too sure about this one. I expect there to be variation in the relationships each country has with the dependent variable. I believe some country, age, and aor groupings have a stronger relationship than others.

  1. Does the model you create meet or violate the assumption of linearity? Show your work with “plot(x,which=1)”
plot(ice_linear,which=1)

It mostly follows the assumption of linearity.