get_nls: Fit a given formula to single trace of DSF data

get_nlsR Documentation

Fit a given formula to single trace of DSF data

Description

Fit a given formula to single trace of DSF data

Usage

get_nls(
  df,
  start_pars,
  formula,
  lower_bound,
  control_list = list(maxiter = 500),
  ...
)

Arguments

df

a tibble containing x and y data for a single trace of DSF data. In default use, this is Temperature_norm and value_norm.

start_pars

named list of starting parameters for the supplied formula. Passed to nlsLM.

formula

formula to fit. Passed to nlsLM.

lower_bound

a named numeric vector, in identical parameter order to start_pars, containing lower bounds for the input functions.

control_list

an optional named list of controls to pass to nlslM, including max interations.

...

additional arguments, which, if inherited from upstream functions, can be ignored by this function.

Value

a fitted model, exactly as output by nlslM. Or, if the nlsLM operation failed, returns NA.


taiawu/dsfworld_package documentation built on June 18, 2024, 5:39 a.m.