findbestfit: Finds optimal fitting point

Description Usage Arguments Details Value

View source: R/findbestfit.R

Description

Finds the number of points that have to be used for an optimal fit between the x and y variables.

Usage

1
  findbestfit(x, y, minpoints = 3, maxerror = 0.1)

Arguments

x,y

Regression data

minpoints

Minimum data points to be used for the regression.

maxerror

The maximum error rate allowed.

Details

This function finds the earliest point that allows to have a regression with less than 5 chosen points (this parameter is controlled by the maxerror variable). If no point allows to have this error rate, the point that yields the minimum regression error is used.

Value

A list containing the time point chosen, initial.time.point, and the actual fitted object, fit.


traceRkinetic documentation built on May 2, 2019, 6:10 p.m.