Skip to content

SHAP Value Methods was applied to check the associations between suicide rates and rurality, altitude, climate factors, and social economic factors. Suicide rates are divided to 3 groups: suicide by all means, suicides by firearms, suicides by non-firearms. SHAP values are investigated in each single year and 5-year periods from 2010 to 2020

Notifications You must be signed in to change notification settings

Wenhuan2516/SHAP_Values_for_Suicide_Study

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SHAP_Values_for_Suicide_Study

SHAP Value Methods was applied to check the associations between suicide rates and rurality, altitude, climate factors, and social economic factors from 2010 to 2020. Suicide rates are divided to 3 groups: suicide by all means, suicides by firearms, suicides by non-firearms. SHAP values are investigated in each single year and multiple 5-year periods such as 2010 to 2014, 2011 to 2015 ans so on.

Climate Factors includes mean temperature, visibility, precipitation and so on. The code to collect climate data can be found here: Climate Factors

Social economic factors includes poverty, unemployment, disabled, and so on. The code to collect social economic data from Census API can be found here: Social Economic Factors

Since only about 1000 counties have the suicide death records from CDC, I imputed the suicide rates by assigning the average suicide rates from the abjecent counties. The code to impute suicide rates can be found here: Suicide Rate Imputation

Here I am using SHAP Values in year 2016 as an example to show you how I built the model and get the results.

More results can be found here:

The poster looks like this:

County Adjacent File

County Adjacent File

Random forest method was used to check the feature importance before SHAP Value method was applied.

Random Forest Feature Importance for Climate Factors

SHAP result

Random Forest Feature Importance for Social Economic Factors

SHAP result

Random Forest Feature Importance for All factors

SHAP result

SHAP Values for Overall Suicide rates(Suicide death caused by firearms and Non-firearms)

Plot bar graph to rank SHAP values for climate factors

SHAP result

Beewarm graoh to rank SHAP values for climate factors

SHAP result

Interaction between elevation/altitude(y-axis) and rurality(x-axis)

SHAP result

Interaction between elevation/altitude(x-axis) and rurality(y-axis)

SHAP result

SHAP Value of social economic factors for one county as an example

SHAP result

Plot bar graph to rank SHAP values for social economic factors

SHAP result

Beewarm graoh to rank SHAP values for social economic factors

SHAP result

SHAP Values for Firearm Suicide rates(Suicide rates by Firearm)

Plot bar graph to rank SHAP values for climate factors

SHAP result

Beewarm graoh to rank SHAP values for climate factors

SHAP result

Interaction between elevation/altitude(y-axis) and rurality(x-axis)

SHAP result

Interaction between elevation/altitude(x-axis) and rurality(y-axis)

SHAP result

SHAP Value of social economic factors for one county as an example

SHAP result

Plot bar graph to rank SHAP values for social economic factors

SHAP result

Beewarm graoh to rank SHAP values for social economic factors

SHAP result

About

SHAP Value Methods was applied to check the associations between suicide rates and rurality, altitude, climate factors, and social economic factors. Suicide rates are divided to 3 groups: suicide by all means, suicides by firearms, suicides by non-firearms. SHAP values are investigated in each single year and 5-year periods from 2010 to 2020

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published