/MedicalRiskPredictionModels

Code from the book by Gerds and Kattan

Primary LanguageR

Online material for Medical Risk Prediction Models (Gerds & Kattan)

Reference: Gerds, T.A. and Kattan, M.W. 2021. Medical Risk Prediction Models: With Ties to Machine Learning. Chapman & Hall/CRC, Boca Raton, FL.

./book-cover.png

This repository provides synthetic (computer modified) data and R-codes for all chapters. To conveniently run the codes on your computer there are the following two options.

Install

Prerequisite

Install package devtools. This is needed to install packages from github.

if(require(devtools)==FALSE) install
install_github("tagteam/MedicalRiskPredictionModels",dep=TRUE)

Step 1

Install the most recent version of the R-package riskRegression:

devtools::install_github("tagteam/MedicalRiskPredictionModels")

Step 2

Install the most recent version of the R-package MedicalRiskPredictionModels:

devtools::install_github("tagteam/MedicalRiskPredictionModels")

Step 3

Option 1 download

Navigate to the subdirectory examples of the githup repository and download the files with the R-code, alternatively use the corresponding R-markdown files in the subdirectory vignettes.

Option 2: clone (for advanced R-studio users)

Create a new project via version control, see

Find the chapter specific R-codes in the subdirectory examples of the project, alternatively use the corresponding R-markdown files in the subdirectory vignettes.