pigsustainode: A function to fit 'pigsustainr' ODE models

Description Usage Arguments Value Author(s)

View source: R/pigsustainode.R

Description

Fit pigsustainr ODE (ordinary differential equation) models, using either the 'deSolve' R package or C++.

Usage

1
pigsustainode(model_name, initial_values, parameters, times, backend = "cpp")

Arguments

model_name

The name of the model to simulate

initial_values

Initial values of the state variables

parameters

Vector of parameter values for the model

times

The simulation time steps. Should increment by the desired dt interval

backend

Either "deSolve" or "cpp" (see details); defaults to "cpp"

Value

An object of class of PigSustainSim

Author(s)

Conor Goold conor.goold@gmail.com


cmgoold/pigsustainr documentation built on Jan. 2, 2022, 1:26 a.m.