add_nls: Add model fits to nested data

View source: R/add_nls.R

add_nlsR Documentation

Add model fits to nested data

Description

Add model fits to nested data

Usage

add_nls(by_var, formula, lower_bound, control_list = list(maxiter = 500), ...)

Arguments

by_var

A nested tibble, as output by add_start_pars().

formula

formula for the model to be fit

lower_bound

named numeric vector containing lower bounds, in order, for the input parameters.

control_list

a named list, passed directly to nlslM, to set controls for the fitting.

...

additional named arguments, which will be passed to the helper function get_nls. Also serves the purpose of allowing irrelevant arguments passed from upstream functions using ... to be ignored.

Value

The input nested df, with an additional column named "model", containing the input formula fitted to the data. Is either an s3 model class, or s3 faild model class.


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