multi_stage_ODE: Multi-stage ODE

Description Usage Arguments Value

View source: R/multi_stage_ODE.R

Description

Solve an ODE with time-varying parameter msp (multi stage parameter) and time fixed parameters parameters.

Usage

1
multi_stage_ODE(U0, func, var_names, par_fixed, msp, msp_name, L, time_step)

Arguments

U0

named list. Initial conditions at time 0

func

function. Given U array of variables, func(U;parameters) = dU/dt

var_names

list of char. The names of the variable as in func

par_fixed

named list. The format is ('name'=value)

msp

array like. Contains all the values assumed by the time variable parameters

msp_name

char. Name of the msp as appearing in func

L

array like. Contains the extreme of use of the components of msp. msp[n] is the msp in use from L[n-1] to L[n]. The last component of L is the final point of integration

time_step

float. Step of integration

Value

a list:

sol

dataframe. Solution to ODE evaluated at $times

time

array like. Points of evaluation of solution


Andreaierardi/disCOVIDer19 documentation built on Nov. 3, 2020, 2:24 a.m.