Skip to content

Li1yxu/data550_finalproject_peer1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DATA550 Final Project

Looking at effects of purpose in life on risk of cognitive impairment on Health and Retirement Study participants using Cox Proportional Hazards model. This will build a report providing summary statistics, Cox regression results, and a cumulative hazard plot between lower and upper tertiles of Purpose in Life scores.


Code Description

code/build_table1.R

  • creates summary statistics dataframe for table building

code/run_analysis.R

  • runs Cox model on data and saves the coxph object

code/build_cumhazplot.R

  • builds a ggsurvplot object visualizing cumulative hazard from code/run_analysis.R

code/render_report.R

  • creates the HTML report from 'final_project_report.Rmd'

Makefile

  • contains rules for building the report
  • make .reportbuild will generate the objects for compiling the report
  • it will also create an empty file called .reportbuild in the project root directory, so that make properly knows when to update outputs

Report Build:

  • run 'make final_project_report.html' in terminal to build the report

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 95.9%
  • Makefile 4.1%