eode_set_parameter {ecode}R Documentation

Set New Parameters

Description

Set new parameters for an ODE system.

Usage

eode_set_parameter(x, ParaList)

Arguments

x

an object of class "eode".

ParaList

a list of names of parameters with their corresponding values to be assigned to the ODE system.

Value

an object of "eode" class

Examples

eq1 <- function(x, y, r1 = 4, a11 = 1, a12 = 2) (r1 - a11 * x - a12 * y) * x
eq2 <- function(x, y, r2 = 1, a21 = 2, a22 = 1) (r2 - a21 * x - a22 * y) * y
x <- eode(dxdt = eq1, dydt = eq2)
x
eode_set_parameter(x, ParaList = list(r1 = 3))

[Package ecode version 0.1.0 Index]