Load libraries and data

## 
## Attaching package: 'dplyr'
## The following objects are masked from 'package:stats':
## 
##     filter, lag
## The following objects are masked from 'package:base':
## 
##     intersect, setdiff, setequal, union
Data summary
Name rdata
Number of rows 1295
Number of columns 19
_______________________
Column type frequency:
character 16
numeric 3
________________________
Group variables None

Variable type: character

skim_variable n_missing complete_rate min max empty n_unique whitespace
Wthr_Cond_ID 0 1 3 6 0 5 0
Light_Cond_ID 0 1 4 17 0 5 0
Road_Type_ID 0 1 5 26 0 5 0
Road_Algn_ID 0 1 5 19 0 5 0
Traffic_Cntl_ID 0 1 4 21 0 5 0
Harm_Evnt_ID 0 1 5 26 0 5 0
Intrsct_Relat_ID 0 1 12 20 0 4 0
FHE_Collsn_ID 0 1 5 32 0 5 0
Road_Part_Adj_ID 0 1 5 28 0 5 0
Road_Cls_ID 0 1 5 19 0 5 0
Pop_Group_ID 0 1 5 21 0 5 0
Crash_Speed_LimitCat 0 1 5 9 0 5 0
Veh_Body_Styl_ID 0 1 14 14 0 1 0
Prsn_Ethnicity_ID 0 1 5 40 0 5 0
Prsn_Age 0 1 5 11 0 5 0
Prsn_Injry_Sev_ID 0 1 1 2 0 3 0

Variable type: numeric

skim_variable n_missing complete_rate mean sd p0 p25 p50 p75 p100 hist
SurfDry 0 1 0.91 0.28 0 1.0 1 1 1 ▁▁▁▁▇
GenMale 0 1 0.88 0.32 0 1.0 1 1 1 ▁▁▁▁▇
TrafVol 0 1 14674.82 8269.15 219 7620.5 15197 21765 28995 ▇▇▇▇▇
## 'data.frame':    1295 obs. of  19 variables:
##  $ Wthr_Cond_ID        : chr  "Clear" "Clear" "Clear" "Clear" ...
##  $ Light_Cond_ID       : chr  "Dark, not lighted" "Dark, not lighted" "Daylight" "Daylight" ...
##  $ Road_Type_ID        : chr  "2 lane, 2 way" "2 lane, 2 way" "2 lane, 2 way" "2 lane, 2 way" ...
##  $ Road_Algn_ID        : chr  "Straight, level" "Straight, level" "Straight, level" "Straight, level" ...
##  $ SurfDry             : int  1 1 1 1 1 1 1 1 1 1 ...
##  $ Traffic_Cntl_ID     : chr  "Marked lanes" "Center stripe/divider" "Marked lanes" "Center stripe/divider" ...
##  $ Harm_Evnt_ID        : chr  "Motor vehicle in transport" "Motor vehicle in transport" "Motor vehicle in transport" "Fixed object" ...
##  $ Intrsct_Relat_ID    : chr  "Non intersection" "Non intersection" "Intersection" "Non intersection" ...
##  $ FHE_Collsn_ID       : chr  "Sd both going straight-rear end" "Sd both going straight-rear end" "Other" "Omv vehicle going straight" ...
##  $ Road_Part_Adj_ID    : chr  "Main/proper lane" "Main/proper lane" "Main/proper lane" "Main/proper lane" ...
##  $ Road_Cls_ID         : chr  "Farm to market" "Us & state highways" "Farm to market" "Us & state highways" ...
##  $ Pop_Group_ID        : chr  "10,000 - 24,999 pop" "Rural" "Other" "Rural" ...
##  $ Crash_Speed_LimitCat: chr  "30-40 mph" "65-70 mph" "45-60 mph" "65-70 mph" ...
##  $ Veh_Body_Styl_ID    : chr  "Farm equipment" "Farm equipment" "Farm equipment" "Farm equipment" ...
##  $ Prsn_Ethnicity_ID   : chr  "White                                   " "White                                   " "White                                   " "White                                   " ...
##  $ GenMale             : int  1 1 1 1 1 1 1 1 1 1 ...
##  $ TrafVol             : int  17477 8294 6677 2563 1245 24973 5152 17157 23866 3518 ...
##  $ Prsn_Age            : chr  "25-54 years" "25-54 years" "Other" "25-54 years" ...
##  $ Prsn_Injry_Sev_ID   : chr  "O" "O" "O" "O" ...

Frequency Distribution for Categorical Variable

## Cross tabulations for Categorical Variable

##                    
##                     > 70 mph 30-40 mph 45-60 mph 65-70 mph Other
##   Dark, lighted            0        25        11         4     2
##   Dark, not lighted       28        24        70        31     1
##   Daylight               162       276       368       178    56
##   Dusk                     9         4        17         7     2
##   Other                    4         7         5         3     1
##              
##               > 70 mph 30-40 mph 45-60 mph 65-70 mph Other
##   15-24 years       48        42        53        34    11
##   25-54 years       88       156       211        87    30
##   55-64 years       26        67        94        37     8
##   65-74 years       15        22        45        34     2
##   Other             26        49        68        31    11
## Adding missing grouping variables: `Light_Cond_ID`
## # A tibble: 1,295 × 2
## # Groups:   Light_Cond_ID [5]
##    Light_Cond_ID     Prsn_Injry_Sev_ID
##    <chr>             <chr>            
##  1 Dark, not lighted O                
##  2 Dark, not lighted O                
##  3 Daylight          O                
##  4 Daylight          O                
##  5 Dark, not lighted O                
##  6 Daylight          O                
##  7 Daylight          O                
##  8 Daylight          O                
##  9 Daylight          O                
## 10 Daylight          O                
## # ℹ 1,285 more rows