Allows performing forwards prediction for the General Unified Threshold model of Survival using compiled ode code. This package was created to avoid dependency with the 'morse' package that requires the installation of 'JAGS'. This package is based on functions from the 'morse' package v3.3.1: Virgile Baudrot, Sandrine Charles, Marie Laure Delignette-Muller, Wandrille Duchemin, Benoit Goussen, Nils Kehrein, Guillaume Kon-Kam-King, Christelle Lopes, Philippe Ruiz, Alexander Singer and Philippe Veber (2021) < https://CRAN.R-project.org/package=morse>.
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
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")
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)