Learn R Programming

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

RxODE (version 0.9.0-6)

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.

Copy Link

Version

Install

install.packages('RxODE')

Monthly Downloads

12

Version

0.9.0-6

License

GPL (>= 2)

Maintainer

Wenping Wang

Last Published

May 30th, 2019

Functions in RxODE (0.9.0-6)

add.dosing

Add dosing to eventTable
.rxRmPrint

Remove print statements
.rxRmJac

Remove Jacobian
print.rxCoefSolve

Print the rxCoefSolve object
print.rxDll

Print rxDll object
rxC14

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

Combining event tables
etSeq

Sequence of event tables
rxDfdy

Jacobian and parameter derivatives
rxDelete

Delete the DLL for the model
.rxWinRtoolsPath

Setup Rtools path
rxCat

Use cat when RxODE.verbose is TRUE
rxGetRxODE

Get RxODE model from object
etTrans

Event translation for RxODE
rxNorm

Get the normalized model
eventTable

Create an event table object
rxGetModel

Get model properties without compiling it.
rxModels_

Get the rxModels information
findLhs

Find the assignments in R expression
rxChain

rxChain Chain or add item to solved system of equations
et

Event Table Function
etRep

Repeat an RxODE event table
rxSetSum

Choose the type of sums to use for RxODE.
.rxRmSens

Remove sensitivity equations
print.RxODE

Print information about the RxODE object.
rxChain2

Second command in chaining commands
rxSetupIni

Setup the initial conditions.
rxDynUnload

Unload RxODE object
rxExpandIfElse

Expand if/else clauses into mutiple different types of lines.
print.rxCoef

Print the rxCoef object
rxSimThetaOmega

Simulate Parameters from a Theta/Omega specification
rxControl

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

Cleanup anonymous DLLs
rxC

Return the C file associated with the RxODE object
rxBlockZeros

Creates a logical matrix for block matrixes.
rxCompile

Compile a model if needed
rxIsCurrent

Checks if the RxODE object was built with the current build
.rxSymPyJacobian

Calculate the full Jacobian for a model
rxIsLoaded

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

Return the md5 of an RxODE object or file
genShinyApp.template

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

First Order Expansion of ETA
rxModelVars

All model variables for a RxODE object
is.rxSolve

Check to see if this is an rxSolve object.
rxForget

Clear memoise cache for RxODE
rxSymPyClear

Delete variable if exists.
+.rxSolve

Update Solved object with '+'
rxPermissive

Permissive or Strict RxODE sytax options
rxOptExpr

Optimize RxODE for computer evaluation
is.rxEt

Check to see if this is an rxEt object.
rxAddReturn

Add a return statment to a function.
rxPhysicalDrives

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

Assign pointer based on model variables
rxCondition

Current Condition for RxODE object
rxSymPyDfDy

Calculate df/dy derivatives
rxCores

Get the number of cores in a system
rxSymPySetup

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

Invert matrix using Rcpp Armadilo.
rxSolveFree

Free the C solving information.
rxSymPySetupIf

Setup SymPy environment if needed
reexports

Objects exported from other packages
rinvchisq

Scaled Inverse Chi Squared distribution
rxIs

Check the type of an object using Rcpp
rxVersion

Version and repository for this dparser package.
rxOptions

Options for RxODE
rxSplitLines

Split line into multiple lines at + or - breaks
rxSymPyFix

Fix SymPy expressions to be R parsable expressions
rxSymInvChol

Get Omega^-1 and derivatives
rxSyPyAddVars

Add undefined variables to SymPy
rxSymPyExpand

Return the expanded expression (via SymPy)
rxWinPythonSetup

Setup Python and SymPy for windows
rxSymPyVars

Setup SymPy variables
rxParams

Parameters specified by the model
rxDll

Return the DLL associated with the RxODE object
rxSymPyVersion

Return the version of SymPy that is running
rxProgress

RxODE progress bar functions
rxDynLoad

Load RxODE object
rxParseErr

Prepare Error function for inclusion in RxODE
rxHtml

Format rxSolve and related objects as html.
rxSplitPlusQ

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

Reload RxODE DLL
rxInits

Initial Values and State values for a RxODE object
rxStack

Stack a solved object for things like ggplot
rxSymPyExec

Execute Python statement without getting the return value.
rxSymPyExists

Does the varaible exist in the SymPy Python environment?
rxParsePk

Parse PK function for inclusion in RxODE
rxLhs

Left handed Variables
rxLinCmtTrans

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

Prepare Pred function for inclusion in RxODE
rxSetupScale

Setup the initial conditions.
rxShiny

Use Shiny to help develop an RxODE model
rxSymInvCholCreate

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

Require namespace, otherwise throw error.
rxSetProd

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

Setup Pred function based on RxODE object.
rxSymPyReserved

Return a list of reserved functions and variables from sympy
rxSymInvCholN

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

Calculate the sensitivity equations for a model
rxTrans

Translate the model to C code if needed
rxSymPyStart

Start SymPy
rxToSymPy

Converts model specification to/from a SymPy language
rxWinSetup

Setup Windows components for RxODE
rxSyncOptions

Sync options with RxODE varaibles
rxState

State variables
rxTempDir

Get the RxODE temporary directory
summary.RxODE

Print expanded information about the RxODE object.
rxSumProdModel

Recast model in terms of sum/prod
rxSymPyClean

Remove variables created by RxODE from the SymPy environment.
rxSymPy

Execute sympy statement.
rxSymPyLincmtDvdx

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

Setup SymPy functions
rxUse

Use model object in your package
rxValidate

Validate RxODE
summary.rxDll

Summary of rxDll object
tibble

type_sum function for units
cvPost

Sample a covariance Matrix from the Posteior Inverse Wishart distribution.
as.et

Coerce object to data.frame
add.sampling

Add sampling to eventTable
as.tbl.rxEt

Convert to tbl
.rxFindPow

Find power THETAs for appropriate scaling
coef.RxODE

Return the RxODE coefficients
.rxRmIni

Remove INIs
.clearPipe

Clear/Set pipeline
RxODE

Create an ODE-based model specification