Package Name | Author | Github Repo |
---|---|---|
MidDatAnalysis | Subhradip halder | a2b3bab6 |
The RMS Titanic was a British passenger liner that sank in the North Atlantic Ocean in the early morning of April 15, 1912 after colliding with an iceberg during her maiden voyage from Southampton to New York City. The ship contained 2,224 passengers and crew, out of which 1,500 died in the unfortunate incident.
In this study, we intend to perform a statistical analysis of the fatalities on the ship using the Titanic dataset on Kaggle. The main question that we are addressing here is whether there is a statistically significance relation between the death of the person and their passenger class, age, sex and showcases the analysis in different graphs and a shiny app.
# Please install the R package "devtools" if not installed then use the following command:
devtools::install_github('unimi-dse/a2b3bab6')
# load the package
require(MidDatAnalysis)
-
main_func( ) - This function first calls import_data() and imports the data from a csv file and imports it into a dataframe.It also calls the run_shiny_app( ) which calls the shiny app which diplayes all the analysis graphs, raw data, project summary
-
import_data( ) - This function imports the data from a csv file and imports it into a dataframe
-
survivor_age_mean( ) - This function uses the df dataframe and performes an analysis on the mean age of the passengers who survived and also plots the analysis on a histogram
-
survival_mean_class( ) - This function uses the df dataframe and performes an analysis on the ticket class of the passengers who survived and also plots the analysis on a bar graph
-
survival_sex_rel( ) - This function uses the df dataframe and performes an analysis on the sex of the total number of passengers and also the total passengers who survived and plots the analysis on a bar graph
-
run_shiny_app( ) - This function calls the shiny app which diplayes all the analysis graphs, raw data, project summary.
-
create_detailed_report( ) - This function uses the DataExplorer package to run a detailed report and all the parameters of the df dataframe. It saved all the analysis in a report.html file and opens automatically in a browser
-
Run this function main_func( ) to see a glimpse of the project. This will import the dataframe and also to run the shiny app
-
You can directly run the Shiny app using the function run_shiny_app( ).
-
You can run the create_detailed_report( ) function at the end to give you the detailed report.
Name | Desc. | Linked.in |
---|---|---|
Subhradip Halder | MSc. Data Science Student at University of Milan,Italy | Profile link |