dose_func: Create data.frame with dosing for usage in simulation with...

View source: R/dose_func.r

dose_funcR Documentation

Create data.frame with dosing for usage in simulation with deSolve

Description

This function creates a data.frame that can be used for events of a deSolve simulation

Usage

dose_func(cmt, value, tinf, tau, ndose, times)

Arguments

cmt

number of compartment or differential equation where the dosing should be given

value

the value of the dosing that should be given

tinf

in case value is set an infusion is assumed with tinf as infusion time

tau

dosing interval to be used

ndose

number of doses to be used

times

In case tau and ndose cannot be used (unequal dosing), this parameter can be used to set times of dosing (e.g c(0,24,168))

Value

a data frame that can be used as an event dataset within deSolve

Author(s)

Richard Hooijmaijers

Examples


 dose_func(8,100,tau=48,ndose=5,tinf=2)

amp.sim documentation built on May 7, 2026, 5:08 p.m.