fit_branchmodel: Fit a "Y" shape to data

Description Usage Arguments Details Value

View source: R/branchmodel.R

Description

Fit a "Y" shape to data

Usage

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

Arguments

raw_data

Dataframe with numeric columns.

max_iter

Default 20.

tol

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

Details

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.

Value

S4 object of class "branchmodel".


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