Learn R Programming

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

RxODE (version 0.7.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.

Copy Link

Version

Install

install.packages('RxODE')

Monthly Downloads

236

Version

0.7.2-1

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Wenping Wang

Last Published

May 19th, 2018

Functions in RxODE (0.7.2-1)

add.sampling

Add sampling to eventTable
coef.RxODE

Return the RxODE coefficients
rxDfdy

Jacobian and parameter derivatives
rxHtml

Format rxSolve and related objects as html.
rxDll

Return the DLL associated with the RxODE object
rxInits

Initial Values and State values for a RxODE object
rxLogifyModel

Takes a model and expands it to log multiplication
rxMd5

Return the md5 of an RxODE object or file
RxODE

Create an ODE-based model specification
rxParseErr

Prepare Error function for inclusion in RxODE
rxParams

Parameters specified by the model
rxSetProd

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

Add dosing to eventTable
rxSetSum

Choose the type of sums to use for RxODE.
print.rxCoefSolve

Print the rxCoefSolve object
findLhs

Find the assignments in R expression
genShinyApp.template

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

Add a return statment to a function.
rxAssignPtr

Assign pointer based on model variables
rxShiny

Use Shiny to help develop an RxODE model
rxSymInvChol

Get Omega^-1 and derivatives
print.rxDll

Print rxDll object
rxChain2

Second command in chaining commands
cvPost

Sample a covariance Matrix from the Posteior Inverse Wishart distribution.
rxSimThetaOmega

Simulate Parameters from a Theta/Omega specification
print.RxODE

Print information about the RxODE object.
rxSymInvCholCreate

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

Fix SymPy expressions to be R parsable expressions
rxClean

Cleanup anonymous DLLs
print.rxCoef

Print the rxCoef object
rxSolve

Solves a ODE equation
rxSplitLines

Split line into multiple lines at + or - breaks
rxCompile

Compile a model if needed
eventTable

Create an event table object
is.rxSolve

Check to see if this is an rxSolve object.
rxBlockZeros

Creates a logical matrix for block matrixes.
rxGetRxODE

Get RxODE model from object
rxGetModel

Get model properties without compiling it.
+.rxSolve

Update Solved object with '+'
rxC

Return the C file associated with the RxODE object
rxWinPythonSetup

Setup Python and SymPy for windows
rxSymPyExists

Does the varaible exist in the SymPy Python environment?
rxSymPyExpand

Return the expanded expression (via SymPy)
rxDelete

Delete the DLL for the model
rxSymPyExec

Execute Python statement without getting the return value.
rxSymPyStart

Start SymPy
rxCores

Get the number of cores in a system
rxCondition

Current Condition for RxODE object
rxExpandIfElse

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

Setup Rtools path
rxModelVars.character

All model variables for a RxODE object
rinvchisq

Scaled Inverse Chi Squared distribution
reexports

Objects exported from other packages
rxChain

rxChain Chain or add item to solved system of equations
summary.rxDll

Summary of rxDll object
rxCat

Use cat when RxODE.verbose is TRUE
rxRmSens

Remove sensitivity equations
rxModels_

Get the rxModels information
rxPermissive

Permissive or Strict RxODE sytax options
rxForget

Clear memoise cache for RxODE
rxPhysicalDrives

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

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

Left handed Variables
rxDynLoad

Load RxODE object
rxRtoolsBaseWin

Return Rtools base
rxDynUnload

Unload RxODE object
rxParsePk

Parse PK function for inclusion in RxODE
rxSymDiag

Get the theta numbers for the diagonal elements.
rxSymInv

Get Omega and Omega^-1 and derivatives
rxSymPySetupIf

Setup SymPy environment if needed
rxValidate

Validate RxODE
rxVersion

Version and repository for this dparser package.
rxSymPySetupPred

Setup Pred function based on RxODE object.
rxParsePred

Prepare Pred function for inclusion in RxODE
rxInv

Invert matrix using Rcpp Armadilo.
rxSymPyFunctions

Setup SymPy functions
rxSymPySensitivity

Calculate the sensitivity equations for a model
rxSetupIni

Setup the initial conditions.
rxIsCurrent

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

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

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

Check the type of an object using Rcpp
rxWinSetup

Setup Windows components for RxODE
rxNorm

Get the normalized model
summary.RxODE

Print expanded information about the RxODE object.
rxOptions

Options for RxODE
rxReq

Require namespace, otherwise throw error.
rxPrint

Print x using the message facility
rxReload

Reload RxODE DLL
rxRmJac

Remove Jacobian
rxRmIni

Remove INIs
rxRmPrint

Remove print statements
rxSymInvCholN

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

Setup the initial conditions.
rxSumProdModel

Recast model in terms of sum/prod
rxSplitPlusQ

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

Sync options with RxODE varaibles
rxState

State variables
rxSymInvCreate

Creates an object for caluclating Omega/Omega^-1 and dervatives
rxThetaEta

Format theta and eta for parameter estimate values in RxODE
rxSyPyAddVars

Add undefined variables to SymPy
rxSymPyClear

Delete variable if exists.
rxSymPyDfDy

Calculate df/dy derivatives
rxSymPy

Execute sympy statement.
rxSymPyClean

Remove variables created by RxODE from the SymPy environment.
rxSymPyVersion

Return the version of SymPy that is running
rxSymPyVars

Setup SymPy variables
rxSymPyJacobian

Calculate the full Jacobian for a model
rxSymPyReserved

Return a list of reserved functions and variables from sympy
rxToSymPy

Converts model specification to/from a SymPy language
rxTrans

Translate the model to C code if needed