Description Usage Arguments Details Value

Fit a "Y" shape to data

1 | ```
fit_branchmodel(raw_data, max_iter = 100, tol = 0.01)
``` |

`raw_data` |
Dataframe with numeric columns. |

`max_iter` |
Default 20. |

`tol` |
Stops when less than 100*tol percent of points are reclassified. |

This function imposes a "Y" shape on data in a (preferably 2D) space. It represents the shape as three principal curves (from 'princurve'), which each point hard-assigned to one curve. The internal methods iterate between reassigning the data to the nearest branch and adjusting the branches, with a heuristic to make the curves roughly meet in the center.

S4 object of class "branchmodel".

ekernf01/branchmodel documentation built on Oct. 24, 2020, 8:56 a.m.

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.