Learn R Programming

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

RxODE (version 0.6-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

121

Version

0.6-1

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Wenping Wang

Last Published

October 13th, 2017

Functions in RxODE (0.6-1)

RxODE

Create an ODE-based model specification
add.dosing

Add dosing to eventTable
add.sampling

Add sampling to eventTable
arrange_

arrange_ for solveRxDll object
coef.RxODE

Return the RxODE coefficients
distinct_

distinct_ for solveRxDll object
as_data_frame

as_data_frame for solveRxODE
$<-.solveRxODE

$ Assign for RxODE solved objects
eventTable

Create an event table object
filter_

filter_ for solveRxDll object
genShinyApp.template

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

group_by_ for solveRxDll object
rx.initCmpMgr

A compilation manager for RxODE models
rxAddReturn

Add a return statment to a function.
rxDfdy

Jacobain and parameter derivates
rxDll

Return the DLL associated with the RxODE object
findLhs

Find the assignments in R expression
gather_

gather_ for solveRxDll object
rename_

rename_ for solveRxDll object
rx.do.call

do.call while setting up windows path for compiling
rxClean

Cleanup anonymous DLLs
print.rxCoef

Print the rxCoef object
print.rxCoefSolve

Print the rxCoefSolve object
rxBlockZeros

Creates a logical matrix for block matrixes.
rxCat

Use cat when RxODE.verbose is TRUE
mutate_

mutate_ for solveRxDll object
+.solveRxODE

Update Solved object with '+'
print.rxDll

Print rxDll object
predict.RxODE

Predict an RxODE object
print.RxODE

Print information about the RxODE object.
rxChain

rxChain Chain or add item to solved system of equations
rxChain2

Second command in chaining commands
rxDllLoaded

Determine if the rxDll is loaded or not.
rxExpandIfElse

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

Initial Values and State values for a RxODE object
rxInv

Invert matrix using Rcpp Armadilo.
rxLogifyModel

Takes a model and expands it to log multiplication
rxMd5

Return the md5 of an RxODE object or file
rxNorm

Get the normalized model
rxPairwiseSum

Return an accurate floating point sum of values
rxParams

Parameters specified by the model
rxPhysicalDrives

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

Print x using the message facility
rxRtoolsBaseWin

Return Rtools base
rxSetProd

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

Execute sympy statement.
rxSymPyClean

Remove variables created by RxODE from the SymPy environment.
rxSymPyExpand

Return the expanded expression (via SymPy)
rxKahanSum

Using the Kahan method, take a more accurate sum
rxLhs

Left handed Variables
rxParseErr

Prepare Error function for inclusion in RxODE
rxParsePk

Parse PK function for inclusion in RxODE
rxRmPrint

Remove print statements
rxRmSens

Remove sensitivity equations
rxCompile

Compile a model if needed
rxCoutEcho

Echo cout to console for a number
rxDelete

Delete the DLL for the model
rxLinCmtTrans

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

Load the DLL for the object
rxParsePred

Prepare Pred function for inclusion in RxODE
rxSymPyFix

Fix SymPy expressions to be R parsable expressions
rxSyncOptions

Sync options with RxODE varaibles
rxThetaEta

Format theta and eta for parameter estimate values in RxODE
sample_n

sample_n for solveRxDll object
select_

select_ for solveRxDll object
reexports

Objects exported from other packages
rxCondition

Current Condition for RxODE object
rxCout

Give the cout string for a number
rxForget

Clear memoise cache for RxODE
rxGetModel

Get model properties without compiling it.
rxSetSum

Choose the type of sums to use for RxODE.
rxSetupMemoize

This setups the memoized functions.
rxSymPyExec

Execute Python statement without getting the return value.
rxSymPyExists

Does the varaible exist in the SymPy Python environment?
rxSymPySetupPred

Setup Pred function based on RxODE object.
rxPermissive

Permissive or Strict RxODE sytax options
rxProd

Using RxODE's default method, take a product
rxPythonFsum

Return an accurate floating point sum of values
rxModelVars

All model variables for a RxODE object
rxNeumaierSum

Using the Neumaier method, take a more accurate sum
rxRmIni

Remove INIs
rxRmJac

Remove Jacobian
rxSum

Using RxODE's default method, take a sum
rxOptions

Options for RxODE
rxReload

Reload RxODE DLL
rxReq

Require namespace, otherwise throw error.
rxSplitPlusQ

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

State variables
rxSumProdModel

Recast model in terms of sum/prod
rxSymPyClear

Delete variable if exists.
rxSymPyDfDy

Calculate df/dy derivatives
rxSymPyReserved

Return a list of reserved functions and variables from sympy
rxSymPySensitivity

Calculate the sensitivity equations for a model
rxVersion

Version and repository for this dparser package.
rxWinPythonSetup

Setup Python and SymPy for windows
separate_

separate_ for solveRxDll object
rxSymPyStart

Start SymPy
rxUnload

Unload the DLL for the object
rxValidate

Validate RxODE
solve.RxODE

Solve RxODE objects
spread_

spread_ for solveRxDll object
unite_

unite_ for solveRxDll object
update.solveRxODE

Update the solved object with any of the new parameters.
slice_

slice_ for solveRxDll object
summarise_

summarise_ for solveRxDll object
summary.RxODE

Print expanded information about the RxODE object.
rxSymInv

Get Omega and Omega^-1 and derivatives
rxSymInvCreate

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

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

Setup SymPy environment if needed
rxSolve

Solves a ODE equation
rxSplitLines

Split line into multiple lines at + or - breaks
rxSyPyAddVars

Add undefined variables to SymPy
rxSymDiag

Get the theta numbers for the diagonal elements.
rxSymPyVars

Setup SymPy variables
rxSymPyVersion

Return the version of SymPy that is running
rxWinRtoolsPath

Setup Rtools path
rxWinSetup

Setup Windows components for RxODE
summary.rxDll

Summary of rxDll object
transmute_

transmute_ for solveRxDll object
rxSymPyFunctions

Setup SymPy functions
rxSymPyJacobian

Calculate the full Jacobian for a model
rxToSymPy

Converts model specification to/from a SymPy language
rxTrans

Translate the model to C code if needed
rxodeGc

Garbage Collection for RxODE objects
sample_frac

sample_frac for solveRxDll object
[[<-.solveRxODE

Assign solved objects using the [[]] syntax
[<-.solveRxODE

Assign solved objects using the [] syntax