Description Usage Arguments Value Author(s)

Given a list of model formulas, this function will train such models and return the a single(ensemble) prediction from the list of formulas on a test data set.
It may also provides a *k*-nearest neighbors (KNN) prediction using the features listed in such models.

1 2 3 4 5 6 7 8 |

`formulaList` |
A list made of objects of class |

`trainData` |
A data frame with the data to train the model, where all variables are stored in different columns |

`testData` |
A data frame similar to |

`predictType` |
Prediction type: Probability ("prob") or linear predictor ("linear") |

`type` |
Fit type: Logistic ("LOGIT"), linear ("LM"), or Cox proportional hazards ("COX") |

`Outcome` |
The name of the column in |

`nk` |
The number of neighbors used to generate the KNN classification. If zero, |

`ensemblePredict` |
A vector with the median prediction for the |

`medianKNNPredict` |
A vector with the median prediction for the |

`predictions` |
A matrix, where each column represents the predictions made with each model from |

`KNNpredictions` |
A matrix, where each column represents the predictions made with a different KNN model |

`wPredict` |
A vector with the weighted mean ensemble |

Jose G. Tamez-Pena and Antonio Martinez-Torteya

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.