Learn R Programming

⚠️There's a newer version (1.1.5) of this package.Take me there.

RxODE (version 0.9.2-1)

Facilities for Simulating from ODE-Based Models

Description

Facilities for running simulations from ordinary differential equation (ODE) models, such as pharmacometrics and other compartmental models. A compilation manager translates the ODE model into C, compiles it, and dynamically loads the object code into R for improved computational efficiency. An event table object facilitates the specification of complex dosing regimens (optional) and sampling schedules. NB: The use of this package requires both C and Fortran compilers, for details on their use with R please see Section 6.3, Appendix A, and Appendix D in the "R Administration and Installation" manual. Also the code is mostly released under GPL. The VODE and LSODA are in the public domain. The information is available in the inst/COPYRIGHTS. You can also obtain the archived SnakeCharmR for python integration from CRAN archives or .

Copy Link

Version

Install

install.packages('RxODE')

Monthly Downloads

121

Version

0.9.2-1

License

GPL (>= 3)

Maintainer

Wenping Wang

Last Published

October 15th, 2020

Functions in RxODE (0.9.2-1)

add.sampling

Add sampling to eventTable
as.data.table.rxEt

Convert an event table to a data.table
.rxFindPow

Find power THETAs for appropriate scaling
as.et

Coerce object to data.frame
RxODE

Create an ODE-based model specification
cvPost

Sample a covariance Matrix from the Posterior Inverse Wishart distribution.
add.dosing

Add dosing to eventTable
coef.RxODE

Return the RxODE coefficients
.clearPipe

Clear/Set pipeline
as_tibble.rxEt

Convert to tbl
et

Event Table Function
.rxRmJac

Remove Jacobian
.rxRmSens

Remove sensitivity equations
etRep

Repeat an RxODE event table
.rxSymPyJacobian

Calculate the full Jacobian for a model
.rxRmPrint

Remove print statements
.rxWinRtoolsPath

Setup Rtools path
.setWarnIdSort

Turn on/off warnings for ID sorting.
etExpand

Expand additional doses
etSeq

Sequence of event tables
forderForceBase

Force using base order for RxODE radix sorting
rxChain2

Second command in chaining commands
rxChain

rxChain Chain or add item to solved system of equations
eventTable

Create an event table object
.rxRmIni

Remove INIs
pillar_shaft

Re export of pillar_shaft
rxFoExpandEta

First Order Expansion of ETA
etRbind

Combining event tables
guide_none

Empty Guide
etTrans

Event translation for RxODE
print.rxCoef

Print the rxCoef object
rxCompile

Compile a model if needed
rxClean

Cleanup anonymous DLLs by unloading them
pillar_shaft.rxRateDur

Pillar shaft for rxRateDur
rxExpandIfElse

Expand if/else clauses into multiple different types of lines.
rxGetRxODE

Get RxODE model from object
print.RxODE

Print information about the RxODE object.
rxInv

Invert matrix using RcppArmadillo.
genShinyApp.template

Generate an example (template) of a dosing regimen shiny app
rxAllowUnload

Allow unloading of dlls
rxC14

Setup C++14 support in windows (required for nlmixr)
reexports

Objects exported from other packages
print.rxCoefSolve

Print the rxCoefSolve object
findLhs

Find the assignments in R expression
+.rxSolve

Update Solved object with '+'
rxInits

Initial Values and State values for a RxODE object
rxPermissive

Permissive or Strict RxODE syntax options
is.rxEt

Check to see if this is an rxEt object.
rxCondition

Current Condition for RxODE object
print.rxDll

Print rxDll object
rxOptions

Options for RxODE
rxOptExpr

Optimize RxODE for computer evaluation
rxHtml

Format rxSolve and related objects as html.
rxCores

Get the number of cores in a system
rxSplitLines

Split line into multiple lines at + or - breaks
rinvchisq

Scaled Inverse Chi Squared distribution
rxShiny

Use Shiny to help develop an RxODE model
rxSimThetaOmega

Simulate Parameters from a Theta/Omega specification
is.rxSolve

Check to see if this is an rxSolve object.
rxAddReturn

Add a return statement to a function.
rxStack

Stack a solved object for things like ggplot
rxCat

Use cat when RxODE.verbose is TRUE
rxParsePred

Prepare Pred function for inclusion in RxODE
rxParsePk

Parse PK function for inclusion in RxODE
rxDll

Return the DLL associated with the RxODE object
rxMd5

Return the md5 of an RxODE object or file
rxSplitPlusQ

This function splits a function based on + or - terms
rxSymPyLincmtDvdx

This creates the dv/dx RxODE model for a linear solved system
rxPhysicalDrives

Returns a list of physical drives that have been or currently are mounted to the computer.
rxLhs

Left handed Variables
rxIsLoaded

Determine if the DLL associated with the RxODE object is loaded
rxDynLoad

Load RxODE object
rxLock

Lock/unlocking of RxODE dll file
rxDfdy

Jacobian and parameter derivatives
rxProgress

RxODE progress bar functions
rxRateDur

Creates a rxRateDur object
rxAssignPtr

Assign pointer based on model variables
rxDelete

Delete the DLL for the model
rxValidate

Validate RxODE
rxSymPyVars

Setup SymPy variables
rxSymPyReserved

Return a list of reserved functions and variables from sympy
rxC

Return the C file associated with the RxODE object
rxSymPyStart

Start SymPy
rxSymPyFix

Fix SymPy expressions to be R parsable expressions
rxEvid

EVID formatting for tibble and other places.
rxState

State variables
rxSymPyFunctions

Setup SymPy functions
rxBlockZeros

Creates a logical matrix for block matrixes.
rxSetProd

Choose the type of product to use in RxODE. These are used in the RxODE prod blocks
rxSetIni0

Set Initial conditions to time zero instead of the first observed/dosed time
rxSetSum

Choose the type of sums to use for RxODE.
rxIsCurrent

Checks if the RxODE object was built with the current build
rxNorm

Get the normalized model
rxVersion

Version and repository for this dparser package.
rxParams

Parameters specified by the model
rxSetProgressBar

Set timing for progress bar
rxSymPySetupIf

Setup SymPy environment if needed
rxDynUnload

Unload RxODE object
rxSymPySensitivity

Calculate the sensitivity equations for a model
rxSymPy

Execute sympy statement.
rxSetupIni

Setup the initial conditions.
rxModels_

Get the rxModels information
rxGetModel

Get model properties without compiling it.
rxForget

Clear memoise cache for RxODE
rxSetupScale

Setup the initial conditions.
rxLinCmtTrans

This translates the parameters specified by the model in the correct type of solving.
rxUse

Use model object in your package
rxIs

Check the type of an object using Rcpp
rxParseErr

Prepare Error function for inclusion in RxODE
rxReq

Require namespace, otherwise throw error.
rxReload

Reload RxODE DLL
rxSymInvCholN

Return the dimension of the built-in derivatives/inverses
rxSumProdModel

Recast model in terms of sum/prod
rxSyPyAddVars

Add undefined variables to SymPy
rxSymPyDfDy

Calculate df/dy derivatives
rxSyncOptions

Sync options with RxODE variables
rxSymPySetupPred

Setup Pred function based on RxODE object.
rxSymPySetup

Setup a SymPy environment that sets up the specified RxODE model.
rxSymPyVersion

Return the version of SymPy that is running
rxWinPythonSetup

Setup Python and SymPy for windows
rxSymInvChol

Get Omega^-1 and derivatives
rxTempDir

Get the RxODE temporary directory
tibble

type_sum function for units
rxSymPyExec

Execute Python statement without getting the return value.
rxSymInvCholCreate

Creates an object for calculating Omega/Omega^-1 and derivatives
rxUseRadixSort

Use Radix Sort when possible
rxModelVars

All model variables for a RxODE object
rxWinSetup

Setup Windows components for RxODE
rxControl

Solving \& Simulation of a ODE/solved system (and solving options) equation
rxSymPyClean

Remove variables created by RxODE from the SymPy environment.
rxSymPyExpand

Return the expanded expression (via SymPy)
rxToSymPy

Converts model specification to/from a SymPy language
rxSolveFree

Free the C solving/parsing information.
rxTrans

Translate the model to C code if needed
summary.RxODE

Print expanded information about the RxODE object.
rxUnloadAll_

Unload all RxODE Dlls that are not locked for solving.
summary.rxDll

Summary of rxDll object
rxSymPyExists

Does the variable exist in the SymPy Python environment?
rxSymPyClear

Delete variable if exists.