fix_deriv: Modify Self-starting Model Functions

Description Usage Arguments Value Examples

View source: R/Self_starters.R

Description

This is a work-around function to modify the output functions from deriv or selfStart to allow more flexibility when using them with nlmer from the lme4 package.

Usage

1
fix_deriv(func)

Arguments

func

A function object, the output from deriv or selfStart

Value

A modified function with one extra line of code inserted

Examples

1
2
mod_fun <- deriv(~ b*v/(w - c), namevec = c("b", "c"), function.arg = function(v, w, b, c) {})
mod_fun_fix <- fix_deriv(mod_fun)

BillVenables/WWRCourse documentation built on Jan. 31, 2021, 4:22 p.m.