Remove Risk Factors
Description
Use the Modelscape™ Remove Risk Factors task to remove or include variables from a data table and record the corresponding reasons. Not all the data in the table is necessarily usable for a statistical model. For example, randomized user identifiers (IDs) are often irrelevant, legally sensitive data such as ethnic origin or religious beliefs cannot be used, and some data can be of poor quality. The task automatically generates MATLAB® code for your live script. This task requires the Modelscape for MATLAB support package.
Using this task, you can:
Inspect summary statistics and histograms for variables in a data table.
Remove variables from a data table and record the corresponding reason for exclusion.
Record reasons for including variables in a data table.
Export the resulting subtables to MATLAB desktop.
For general information about Live Editor tasks, see Add Interactive Tasks to a Live Script.
Open the Remove Risk Factors
To add the Threshold Predictors task to a live script in the MATLAB Editor:
On the Live Editor tab, select Task > Remove Risk Factors.
In a code block in the script, type a relevant keyword, such as
remove
. SelectRemove Risk Factors
from the suggested command completions.
Examples
Parameters
Version History
Introduced in R2021b