Description Usage Arguments Value Examples
View source: R/ModelGeneration.R
A helper function used by the predict function. Since the many types of models are not uniform in how they are called, this function determines what values to pass into "type" and then returns the predictions.
1 | GetPredType(model, newdata)
|
model |
The model to be used for prediction |
newdata |
A dataframe for the model to predict on |
The predictions for the model on the given data, returned in dataframe format
1 2 | # This function is used by predict.ModelComparison. It's usage is as follows:
# pred.basic[[i]] = GetPredType(model, newdata)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.