sine_OLS: Cosine model fitting with proposed initialization.

Description Usage Arguments Value References Examples

View source: R/sine_OLS.R

Description

Performs the updated nonlinear least squares (NLS) regression method for the cosine model (see Chazin et al. 2019).

Usage

1

Arguments

data

A data frame that contains the data for one individual. There should be two columns with names 'distance' and 'oxygen'.

Value

A fitted model object from the nls function in R:

m

an 'nlsModel' object incorporating the model.

convInfo

a list with convergence information

data

the expression that was passed to 'nls' as the data argument. The actual data values are present in the environment of the 'm' component.

call

the matched call with several components, notably 'algorithm'

dataClasses

the '"dataClasses"' attribute (if any) of the '"terms"' attribute of the model frame.

control

the control 'list' used

References

Florent Baty, Christian Ritz, Sandrine Charles, Martin Brutsche, Jean-Pierre Flandrois, Marie-Laure Delignette-Muller (2015). A Toolbox for Nonlinear Regression in R: The Package nlstools. Journal of Statistical Software, 66(5), 1-21. URL http://www.jstatsoft.org/v66/i05/.

Examples

1
2
armenia_split = split(armenia,f = armenia$ID)
sine_OLS(armenia_split[[1]])

SCEM documentation built on Sept. 5, 2021, 5:50 p.m.