generate.riskgp.vector | R Documentation |
Creates a number of risk groups from a regression model. Higher risk groups are more likely to score highly in the model, and vice versa.
generate.riskgp.vector( input.df, model, n.groups, riskgp.level.name.suffix = "" )
input.df |
A data.frame with the columns from the regression model. |
model |
The regression model, should be compatible with base::predict |
n.groups |
Number of groups to generate. |
riskgp.level.name.suffix |
Suffix to place after the number of the risk group (default: ”) |
A vector of risk groups in the same order as the rows of input.df. Higher risk groups are more likely to score highly in the model, and vice versa. Groups will be names e.g. '01' + riskgp.level.name.suffix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.