fitOneMinMod: fit the dalla Man version of the Bergman minimal model...

Description Usage Arguments Value

Description

fit the dalla Man version of the Bergman minimal model (piecewise linear form for rate of appearance of glucose)

Usage

1
2
3
4
5
fitOneMinMod(insulin, glucose, bodyweight, times, nlsmaxit = 100,
  nlstol = 0.1, fullNLScontrol = NULL, nlstrace = FALSE, Sg = 0.028,
  V = 1.34, D = 75000, FA = 0.87, DC = 0.017, p2 = 0.012,
  nlsinit = list(a1 = 4, a2 = 4, a3 = 4, SI = 1e-04), trajTimes = 0:120,
  inputID = "")

Arguments

insulin

a numeric vector of insulin values recorded at times in times

glucose

a numeric vector of glucose concentrations, same length as insulin

bodyweight

a numeric scalar

times

times in minutes

nlsmaxit

maximum number of iterations for NLS

nlstol

tolerance for convergence of NLS

fullNLScontrol

an optional list of control parameters for NLS

nlstrace

logical requesting retention of trace

Sg

fractional glucose effectiveness (default 0.028 min^-1)

V

volume of distribution (default 1.34 dl/kg)

D

ingested glucose dose in mg (default 75000)

FA

fraction of glucose dose that is absorbed, default = 0.87, dimensionless

DC

decay constant for model for rate of appearance of glucuse, default 0.017

p2

rate constant of the remote insulin compartment from which insulin action emanates, default value 0.012 min^-1

nlsinit

initial values for unknown parameters a1, a2, a3 (coefficients of piecewise linear model for rate of appearance of glucose) and SI (insulin sensitivity)

trajTimes

a vector of times at which glucose and insulin trajectories should be estimated

inputID

a string that may be used for rendering an ID tag

Value

a list with elements fit for the NLS fit, soln for the lsoda based solution to the differential equation model, pwlinRa for the piecewise-linear estimate of Ra (rate of appearance of glucose), input for a sublist with information about the input data, and sessInf for the sessionInfo metadata


vjcitn/ogttMetrics documentation built on May 3, 2019, 6:14 p.m.