Learn R Programming

geex (version 1.1.1)

setup_root_control: Setup a root_control object

Description

Setup a root_control object

Usage

setup_root_control(FUN, roots_name, ...)

Value

a root_control object

Arguments

FUN

a function

roots_name

a character string identifying the object containing the

...

arguments passed to FUN

Examples

Run this code
# Setup the default
setup_root_control(start = c(3, 5, 6))

# Also setup the default
setup_root_control(FUN = rootSolve::multiroot,
                   start = c(3, 5, 6))

# Or use uniroot()
setup_root_control(FUN = stats::uniroot,
                   interval = c(0, 1))

Run the code above in your browser using DataLab