fit_nl: Fit a model to data using functions from nloptr

Description Usage Arguments

View source: R/fit.R

Description

Fit a model to data using functions from nloptr

Usage

1
2
3
fit_nl(theta, data, mod, optimizer = c("newuoa", "neldermead"),
  pred_name = "CP", ofv = els, logdv = FALSE, sigma = ~sigma,
  pred_initial = FALSE, cov_step = FALSE, ...)

Arguments

theta

a parset object

data

a data set in data.frame format

mod

a mrgsolve model object

optimizer

used to search the parameter space

pred_name

name in simulated output representing 'PRED'

ofv

objective function function

logdv

logical; if 'TRUE', then the dependent variable is log-transformed during 'ofv' calculation

sigma

a one-sided formula containing an expression for the residual error variance

pred_initial

if 'TRUE', a column is added to the output called 'INITIAL' which is a model prediction at the initial parameter estimates

cov_step

if 'TRUE', then standard errors are derived using the Hessian

...

passed to 'ofv'


kylebtwin/optimhelp documentation built on Sept. 12, 2021, 8:10 p.m.