Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/predict.subsemble.R

Obtains predictions on a new data set from a `subsemble`

fit. May require the original data, `X`

, if one of the learner algorithms uses the original data in its predict method.

1 2 |

`object` |
An object of class 'subsemble', which is returned from the |

`newx` |
The predictor variables for a new (testing) data set. The structure should match |

`x` |
Original data set used to fit |

`y` |
Original outcome used to fit |

`...` |
Additional arguments passed to the |

If `newx`

is omitted, the predicted values from `object`

are returned. The `learner`

algorithm needs to have a corresponding prediction function with “predict” prefixed onto the algorithm name (e.g. `predict.SL.glm`

for `SL.glm`

). This should be taken care of by the `SuperLearner`

package.

`pred` |
Predicted values from subsemble fit. |

`subpred` |
A data.frame with the predicted values from each sublearner algorithm for the rows in |

Erin LeDell [email protected]

1 | ```
# See subsemble documentation for an example.
``` |

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.