Giter Club home page Giter Club logo

mph_thesis_ml's Introduction

mph_thesis_ml

The original paper used logistic regression using backwards selection on a number of binary variables to attempt to predict the risk of childhood mortality. It created a simple binary risk score to aid in calculating a child's probability of death.

My work attempts to extend this analysis by using machine learning analyses to validate this approach and compare it to other analytical methods. In particular, I aim to produce some decision trees to aid in decision-making.

01_clean_data.do:

  • Formats all variables the same way
  • Decide what to do with “9” values
  • Exclude variables that don’t matter
  • Create variable lists: signs, symptoms, treatment, diagnoses, test results, outcomes
  • Turn all variables into binary indicators
    • May need Herbie’s guidance on indicators not included in the original analysis

02_prep_data.R

  • Apply different methods of imputation or observation-dropping
  • Output table of missing variables for all variables of interest
  • Descriptive table of primary patient characteristics
  • Any other descriptive stats

analysis_functions.R

  • Specify one function for each method — assume same data structure, and take in arguments for formula etc.
  • Logistic regression with backwards selection
    • Define variable importance cutoffs for selection (or default)
  • Decision trees
    • Define ideal tree breakdown — pruning characteristics etc.
  • Random forests
    • Source up-sampling/down-sampling methods
  • Define sampling parameters, number of cv runs, etc.
  • Output predictions, graphical representations, ROC analyses.
  • Save graphs, predictions, and ROC analyses to flat files (how to toggle by source?)

03_apply_analysis.R

  • Source all analysis functions
  • Separate data into train and test data
  • Apply analysis functions and get/plot results

mph_thesis_ml's People

Contributors

gnguy avatar

Watchers

 avatar

Forkers

rodrigobressan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.