Description Usage Arguments Value Examples
Create Prediction and y vector
1 | prepare_X_y(data, outcome, vars)
|
data |
PEDIS data frame |
outcome |
A string with the variable name of the outcome variable y |
vars |
A character vector containing the variable names of the predictor variables |
A list containing the predictor matrix X and the outcome vector y
1 2 | data(pedis)
prepare_X_y(data = pedis, outcome = "minor_amputation", vars = c("p", "e", "d", "i", "s"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.