odeGUTS

R-CMD-check Lifecycle: stable CRAN status

The goal of odeGUTS is to offer ode solver for the GUTS-RED-SD and GUTS-RED-IT model without dependency to the “morse” package

Installation

You can install the released version of odeGUTS from CRAN with:

install.packages("odeGUTS")

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("bgoussen/odeGUTS")

Example

This is a basic example which shows you how to solve a common problem:

library(odeGUTS)
dataPredict <- data.frame(time = c(1:5, 1:10, 1:15), 
                          conc = c(rep(5, 5), 
                                  c(rep(0, 3), rep(12, 4), rep(0, 3)), 
                                  rep(15, 15)),  
                          replicate = c(rep("rep1", 5), rep("rep2", 10), rep("rep3", 15))) # Prepare data for forwards prediction
data(fit_odeGUTS)
out <- predict_ode(fit_odeGUTS, dataPredict)