Prediction.Rmd
Patient-level prediction lets users answer the question, who is at risk or an outcome during some time period within a target population. For example, you can answer: who is at risk of developing angioedema within a year of starting lisinopril, in new users or lisinopril?
We define a target cohort as a set of patients with an exposure or interest and/or with evidence of having an indication of interest, an outcome cohort as a set of patients with evidence of the outcome of interest, and a time-at-risk as a period of time to where the patient is at risk of developing the outcome. The package shows performance of models developed to predict the outcome during the time-at-risk relative to the target cohort index for patients in the target cohort.
The first page lets you pick one or more target cohorts and outcome cohorts to restrict to. Then a model design summary table is displayed restricted to the selected target and outcome cohorts. The model design summary aggregates the performances of models developed across different databases for the same model design (target cohort, outcome, time-at-risk, population inclusion criteria, model and data preprocessing). The summary table includes the model design id, target cohort name, outcome cohort name, time-at-risk, the min/mean/max AUROC for models developed using the model design across databases as well as the number of databases included in diagostics, model development and model validation.
The first column of the summary table is a button that enables users to dive deeper into the results. Users can select from:
The view models view shows all the model development/validation results for the selected model design. The table shows the development database, validation data, target name, outcome name, time-at-risk (TAR), the AUROC, AUPRC, number of people in the target cohort, number of target cohort with the outcome during TAR, the percentage of the target population used for model validation (this is 100% when displaying external validation) and percentage of target population with the outcome during TAR.
Users can select a result view to explore the model more:
The view diagnostic view shows diagnostics based on PROBAST, that aims to see the risk of bias in a model design when applied to a specific database. Click here to read more about PROBAST.
Patient-level prediction enables users to identify who is at risk of developing some future outcome. This can be used to guide clinical interventions or risk mitigation or early detection.
To find out more about the analyses execution details and see examples, please see here.
To see the code behind the PatientLevelPrediction R package, please see here.