The dataset records the total number of road traffic accidents in each state for the given period, categorizing the accidents into fatal, severe, and minor incidents. This comprehensive dataset is valuable for analyzing trends and patterns in road safety across the country, helping to identify regions with higher accident incidences.
# Road-Accident-in-Nigeria
The dataset records the total number of road traffic accidents in each state for the given period, categorizing the accidents into fatal, severe, and minor incidents. This comprehensive dataset is valuable for analyzing trends and patterns in road safety across the country, helping to identify regions with higher accident incidences.
# Methodology
Methods of Data Collection:
Data on number of Road Traffic Accident (RTA) was obtained from the Annual Abstract of statistics published by the National Bureau of Statistics, Nigeria. The data comprises of insurgence of Road Traffic Accident within the year 2013 to 2017 for the 36 states in Nigeria including the Federal capital Territory(Abuja) as well as the water body Area (lack chad) of the country.
included in the data obtained and adopted for this study are years of the accident, the state of the occurrence of accident, total number of the accident occurred during the years of study which include the addition of the fatal, severe and minor accident that occurred across the state of the country.
# Methods of Data Analysis:
R package version 4.0.5 and R studio was used to analyze the data in order to get adequate information from the data. Descriptive statistics of the data was performed using summary(), box plot was also plotted to further understand the shape of the distribution of the data.
the data were later subjected to map using tmap() and a geospatial analysis using mainly the two major different approaches namely Global Moran I and Local Moran I in order to determine the degree of spatial clustering.
# Descriptive Statistics
Descriptive statistics are a useful means of deriving quick information about a collective dataset. we would Notice that below, i made use of $ symbol to select a single variable from the Accidentdata object.
This is because If you type in Accidentdata$ (so the name of your data object followed by a $ sign), then press tab on your keyboard, RStudio will let you …