prepare_X_y: Create Prediction and y vector

Description Usage Arguments Value Examples

Description

Create Prediction and y vector

Usage

1
prepare_X_y(data, outcome, vars)

Arguments

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

Value

A list containing the predictor matrix X and the outcome vector y

Examples

1
2
data(pedis)
prepare_X_y(data = pedis, outcome = "minor_amputation", vars = c("p", "e", "d", "i", "s"))

jnshsrs/PEDISdata documentation built on June 24, 2019, 12:07 p.m.