Learn R Programming

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

RxODE (version 0.7.2-5)

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

121

Version

0.7.2-5

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Wenping Wang

Last Published

June 19th, 2018

Functions in RxODE (0.7.2-5)

add.sampling

Add sampling to eventTable
reexports

Objects exported from other packages
rinvchisq

Scaled Inverse Chi Squared distribution
findLhs

Find the assignments in R expression
genShinyApp.template

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

Print the rxCoefSolve object
rxChain

rxChain Chain or add item to solved system of equations
rxCat

Use cat when RxODE.verbose is TRUE
rxExpandIfElse

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

Print rxDll object
rxForget

Clear memoise cache for RxODE
rxLhs

Left handed Variables
rxLinCmtTrans

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

Delete the DLL for the model
rxCores

Get the number of cores in a system
rxReq

Require namespace, otherwise throw error.
rxIsCurrent

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

Get RxODE model from object
rxGetModel

Get model properties without compiling it.
rxIsLoaded

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

Load RxODE object
rxParams

Parameters specified by the model
rxSetProd

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

Unload RxODE object
rxParseErr

Prepare Error function for inclusion in RxODE
is.rxSolve

Check to see if this is an rxSolve object.
rxSolveFree

Free the C solving information.
rxSimThetaOmega

Simulate Parameters from a Theta/Omega specification
+.rxSolve

Update Solved object with '+'
rxSolve

Solves a ODE equation
print.rxCoef

Print the rxCoef object
print.RxODE

Print information about the RxODE object.
rxSplitLines

Split line into multiple lines at + or - breaks
rxClean

Cleanup anonymous DLLs
rxSymDiag

Get the theta numbers for the diagonal elements.
rxChain2

Second command in chaining commands
rxHtml

Format rxSolve and related objects as html.
rxSymInv

Get Omega and Omega^-1 and derivatives
rxModelVars

All model variables for a RxODE object
rxSymPyExpand

Return the expanded expression (via SymPy)
rxModels_

Get the rxModels information
rxSymPyFix

Fix SymPy expressions to be R parsable expressions
rxSumProdModel

Recast model in terms of sum/prod
rxSyncOptions

Sync options with RxODE varaibles
rxPermissive

Permissive or Strict RxODE sytax options
rxSymPyVersion

Return the version of SymPy that is running
rxSyPyAddVars

Add undefined variables to SymPy
rxVersion

Version and repository for this dparser package.
rxInits

Initial Values and State values for a RxODE object
rxSymPyExec

Execute Python statement without getting the return value.
rxPhysicalDrives

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

Setup Python and SymPy for windows
rxSetupScale

Setup the initial conditions.
rxSymPyExists

Does the varaible exist in the SymPy Python environment?
rxShiny

Use Shiny to help develop an RxODE model
RxODE

Create an ODE-based model specification
rxToSymPy

Converts model specification to/from a SymPy language
rxThetaEta

Format theta and eta for parameter estimate values in RxODE
rxWinSetup

Setup Windows components for RxODE
add.dosing

Add dosing to eventTable
summary.RxODE

Print expanded information about the RxODE object.
rxSymPy

Execute sympy statement.
rxNorm

Get the normalized model
rxOptions

Options for RxODE
rxPrint

Print x using the message facility
rxSymPyClean

Remove variables created by RxODE from the SymPy environment.
rxSymPyFunctions

Setup SymPy functions
rxAddReturn

Add a return statment to a function.
rxAssignPtr

Assign pointer based on model variables
rxTrans

Translate the model to C code if needed
rxSymPyReserved

Return a list of reserved functions and variables from sympy
rxReload

Reload RxODE DLL
rxSetSum

Choose the type of sums to use for RxODE.
rxDfdy

Jacobian and parameter derivatives
rxValidate

Validate RxODE
summary.rxDll

Summary of rxDll object
rxDll

Return the DLL associated with the RxODE object
rxSetupIni

Setup the initial conditions.
rxSymInvChol

Get Omega^-1 and derivatives
rxSymInvCholCreate

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

Invert matrix using Rcpp Armadilo.
rxIs

Check the type of an object using Rcpp
rxSymPyDfDy

Calculate df/dy derivatives
rxSymPyStart

Start SymPy
rxSymPyClear

Delete variable if exists.
rxLogifyModel

Takes a model and expands it to log multiplication
rxSymPyVars

Setup SymPy variables
rxMd5

Return the md5 of an RxODE object or file
rxParsePk

Parse PK function for inclusion in RxODE
rxSplitPlusQ

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

Prepare Pred function for inclusion in RxODE
rxState

State variables
rxSymInvCholN

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

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

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

Calculate the sensitivity equations for a model
rxSymPySetupIf

Setup SymPy environment if needed
rxSymPySetupPred

Setup Pred function based on RxODE object.
coef.RxODE

Return the RxODE coefficients
eventTable

Create an event table object
cvPost

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

Creates a logical matrix for block matrixes.
rxC

Return the C file associated with the RxODE object
rxCompile

Compile a model if needed
rxCondition

Current Condition for RxODE object