Learn R Programming

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

RxODE (version 0.9.2-0)

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

236

Version

0.9.2-0

License

GPL (>= 3)

Maintainer

Wenping Wang

Last Published

March 13th, 2020

Functions in RxODE (0.9.2-0)

.rxRmIni

Remove INIs
etExpand

Expand additional doses
.rxRmSens

Remove sensitivity equations
.rxRmPrint

Remove print statements
as.data.table.rxEt

Convert an event table to a data.table
add.sampling

Add sampling to eventTable
et

Event Table Function
.setWarnIdSort

Turn on/off warnings for ID sorting.
RxODE

Create an ODE-based model specification
add.dosing

Add dosing to eventTable
etRbind

Combining event tables
.rxRmJac

Remove Jacobian
etRep

Repeat an RxODE event table
genShinyApp.template

Generate an example (template) of a dosing regimen shiny app
print.RxODE

Print information about the RxODE object.
forderForceBase

Force using base order for RxODE radix sorting
+.rxSolve

Update Solved object with '+'
etTrans

Event translation for RxODE
rxC14

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

Calculate the full Jacobian for a model
eventTable

Create an event table object
.rxWinRtoolsPath

Setup Rtools path
print.rxDll

Print rxDll object
findLhs

Find the assignments in R expression
rxBlockZeros

Creates a logical matrix for block matrixes.
is.rxEt

Check to see if this is an rxEt object.
rxCores

Get the number of cores in a system
is.rxSolve

Check to see if this is an rxSolve object.
rxC

Return the C file associated with the RxODE object
reexports

Objects exported from other packages
rxCat

Use cat when RxODE.verbose is TRUE
rxCondition

Current Condition for RxODE object
rxForget

Clear memoise cache for RxODE
rxNorm

Get the normalized model
rxSetupIni

Setup the initial conditions.
rxReload

Reload RxODE DLL
rxSetupScale

Setup the initial conditions.
rxGetModel

Get model properties without compiling it.
pillar_shaft

Re export of pillar_shaft
etSeq

Sequence of event tables
guide_none

Empty Guide
rxModels_

Get the rxModels information
rxSymPy

Execute sympy statement.
rxChain

rxChain Chain or add item to solved system of equations
rxReq

Require namespace, otherwise throw error.
rxSymInvCholN

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

Delete the DLL for the model
rxEvid

EVID formatting for tibble and other places.
print.rxCoef

Print the rxCoef object
rxSymPyExpand

Return the expanded expression (via SymPy)
rxLhs

Left handed Variables
print.rxCoefSolve

Print the rxCoefSolve object
rxDynUnload

Unload RxODE object
pillar_shaft.rxRateDur

Pillar shaft for rxRateDur
rxSymPyExists

Does the variable exist in the SymPy Python environment?
rxCompile

Compile a model if needed
rxIsLoaded

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

Second command in chaining commands
rxClean

Cleanup anonymous DLLs by unloading them
rxParams

Parameters specified by the model
rxDll

Return the DLL associated with the RxODE object
rxSyncOptions

Sync options with RxODE variables
rxSymPyVersion

Return the version of SymPy that is running
rxPermissive

Permissive or Strict RxODE syntax options
rxParseErr

Prepare Error function for inclusion in RxODE
rxDfdy

Jacobian and parameter derivatives
rxControl

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

Validate RxODE
rinvchisq

Scaled Inverse Chi Squared distribution
rxAddReturn

Add a return statement to a function.
rxSolveFree

Free the C solving/parsing information.
rxVersion

Version and repository for this dparser package.
rxOptExpr

Optimize RxODE for computer evaluation
rxDynLoad

Load RxODE object
rxIsCurrent

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

Check the type of an object using Rcpp
rxPhysicalDrives

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

Options for RxODE
rxParsePk

Parse PK function for inclusion in RxODE
rxAssignPtr

Assign pointer based on model variables
rxAllowUnload

Allow unloading of dlls
rxExpandIfElse

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

Recast model in terms of sum/prod
rxShiny

Use Shiny to help develop an RxODE model
rxStack

Stack a solved object for things like ggplot
rxSimThetaOmega

Simulate Parameters from a Theta/Omega specification
rxParsePred

Prepare Pred function for inclusion in RxODE
rxGetRxODE

Get RxODE model from object
rxHtml

Format rxSolve and related objects as html.
rxState

State variables
rxFoExpandEta

First Order Expansion of ETA
rxSymPyDfDy

Calculate df/dy derivatives
rxTempDir

Get the RxODE temporary directory
rxSymPyExec

Execute Python statement without getting the return value.
rxWinPythonSetup

Setup Python and SymPy for windows
rxToSymPy

Converts model specification to/from a SymPy language
rxMd5

Return the md5 of an RxODE object or file
rxSyPyAddVars

Add undefined variables to SymPy
rxLinCmtTrans

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

Invert matrix using RcppArmadillo.
rxLock

Lock/unlocking of RxODE dll file
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
rxInits

Initial Values and State values for a RxODE object
rxSetProgressBar

Set timing for progress bar
rxProgress

RxODE progress bar functions
rxWinSetup

Setup Windows components for RxODE
rxSymPyFix

Fix SymPy expressions to be R parsable expressions
rxModelVars

All model variables for a RxODE object
rxSplitLines

Split line into multiple lines at + or - breaks
rxRateDur

Creates a rxRateDur object
rxSymPyClean

Remove variables created by RxODE from the SymPy environment.
rxSymPyClear

Delete variable if exists.
rxSplitPlusQ

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

Setup SymPy environment if needed
rxSymPyReserved

Return a list of reserved functions and variables from sympy
rxTrans

Translate the model to C code if needed
rxSymPyLincmtDvdx

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

Choose the type of sums to use for RxODE.
rxUnloadAll

Unload all RxODE Dlls that are not locked for solving.
rxUse

Use model object in your package
rxSymPyFunctions

Setup SymPy functions
rxUseRadixSort

Use Radix Sort when possible
rxSymInvChol

Get Omega^-1 and derivatives
rxSymInvCholCreate

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

Setup Pred function based on RxODE object.
tibble

type_sum function for units
rxSymPySensitivity

Calculate the sensitivity equations for a model
rxSymPySetup

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

Print expanded information about the RxODE object.
rxSymPyStart

Start SymPy
rxSymPyVars

Setup SymPy variables
summary.rxDll

Summary of rxDll object
.clearPipe

Clear/Set pipeline
.rxFindPow

Find power THETAs for appropriate scaling
as.et

Coerce object to data.frame
as_tibble.rxEt

Convert to tbl
coef.RxODE

Return the RxODE coefficients
cvPost

Sample a covariance Matrix from the Posterior Inverse Wishart distribution.