breakpointFit: break point fits

View source: R/helperFunctions.R

breakpointFitR Documentation

break point fits

Description

break point fits

Usage

breakpointFit(J, tVectIn, lmLinear, numTry)

Arguments

J

number of breakpoints in the model

tVectIn

a numerical vector indicating the time-points or the order of samples. If it is NULL (default), then the time/order will be assumed to be equaly spaced from 1:N (N is number of samples).

lmLinear

the linear model fit; no breakpoints

numTry

the number of different seeds to try. If all numTry runs fail, then the linear regression (no breakpoints, one segment) model will be returned.


rhondabacher/Trendy documentation built on Oct. 26, 2023, 3:46 a.m.