NHS-R Workshop: Development and validation of clinical prediction models using R
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
Dr Faisal provided a very comprehensive introduction to Clinical Prediction Modelling (CPM for short), focusing on the five stages of developing and validating this type of model in R:
- 1. Model development.
- 2. Performance assessment using discrimination and calibration measures.
- 3. Internal validation using bootstrapping.
- 4. External validation.
- 5. Sensitivity analysis and decision curve analysis (measuring clinical impact).
One of the first things we covered is how CPM is different to causal inference modelling: CPM focuses only on making accurate predictions, not understanding the cause behind the effects. This means that one should be careful in choosing the appropriate type of model for the task and that the two types of modelling should not be assessed by the same criteria.
An important part of the model development phase is deciding whether a model is even needed at all! According to the research presented, many models are developed, but very few are useful. A systematic review from early 2020 concluded that only 4 out of the 731 models they analysed had a low risk of bias. We were helpfully provided a flow chart to help us decide whether a new model is needed.
A lot of emphasis was put on model validation and the various internal and external approaches to validation that one can take.
Participants worked on four tasks of increasing difficulty throughout the workshop, although both the objectives and methods were well explained. By the end of the workshop, we had visualised data, trained and validated a model, and even plotted a variety of performance indicators (including the ROC AUC, calibration, and Decision Curve Analysis).
This was a great introduction to Clinical Predictive Modelling in R, and I hope to attend any future workshops provided by NHS-R!
Thanks NHS-R for agreeing to have some of their slides shared here.
R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.