View source: R/custom_split_forest.R

Wrapper for split function required for the random forest functionality. This function is called once per covariate at each potential split. Implements the random selection of variables; each variable is randomly selected to be included or excluded.

1 | ```
splineforest_split(y, wt, x, parms = NULL, continuous)
``` |

`y` |
the responses at this node |

`wt` |
the weight of the responses |

`x` |
the X data for this covariate |

`parms` |
the basis matrix for the spline and the proportion of variables randomly sampled (diceProb) |

`continuous` |
value is handled internally by rpart - tells us if this covariate is continuous or categorical (factor). |

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.