title: "World Happiness Data Report 2019 Analysis" author: "Debanjali Basu" output: html_document: self_contained: false
```{r, include=FALSE} tutorial::go_interactive()
Let's begin
{r}
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.
### Survival Analysis of Titanic passengers.
Package Name | Author |Github Repo
---------------------|-----------------------------------------------------------------------------|------------------------
MidDatAnalysis | Subhradip halder | [a2b3bab6](https://github.com/unimi-dse/a2b3bab6)
#### Introduction
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](https://www.kaggle.com/c/titanic/data/train.csv). 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.
#### Installation
```R
# 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 :df.It also handles some missing values and finally stores the df into a rda file.It returns the created df as an output
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( ).
Please run the import_data( ) function first, if you want to run the following functions individually:
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.