Package: rxode2 2.1.3.9000

Matthew L. Fidler

rxode2: Facilities for Simulating from ODE-Based Models

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.

Authors:Matthew L. Fidler [aut, cre], Melissa Hallow [aut], Wenping Wang [aut], Zufar Mulyukov [ctb], Alan Hindmarsh [ctb], Arun Srinivasan [ctb], Awad H. Al-Mohy [ctb], Cleve Moler [ctb], Drew Schmidt [ctb], Ernst Hairer [ctb], Gerhard Wanner [ctb], Gilbert Stewart [ctb], Hadley Wickham [ctb], Jack Dongarra [ctb], Jim Bunch [ctb], Linda Petzold [ctb], Martin Maechler [ctb], Matt Dowle [ctb], Matteo Fasiolo [ctb], Nicholas J. Higham [ctb], Roger B. Sidje [ctb], Simon Frost [ctb], Yu Feng [ctb], Bill Denney [ctb]

rxode2_2.1.3.9000.tar.gz
rxode2_2.1.3.9000.zip(r-4.5)rxode2_2.1.3.9000.zip(r-4.4)rxode2_2.1.3.9000.zip(r-4.3)
rxode2_2.1.3.9000.tgz(r-4.4-arm64)rxode2_2.1.3.9000.tgz(r-4.4-x86_64)rxode2_2.1.3.9000.tgz(r-4.3-arm64)rxode2_2.1.3.9000.tgz(r-4.3-x86_64)
rxode2_2.1.3.9000.tar.gz(r-4.5-noble)rxode2_2.1.3.9000.tar.gz(r-4.4-noble)
rxode2_2.1.3.9000.tgz(r-4.4-emscripten)rxode2_2.1.3.9000.tgz(r-4.3-emscripten)
rxode2.pdf |rxode2.html
rxode2/json (API)
NEWS

# Install rxode2 in R:
install.packages('rxode2', repos = c('https://nlmixr2.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/nlmixr2/rxode2/issues

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
  • openmp– GCC OpenMP (GOMP) support library
Datasets:

On CRAN:

301 exports 22 stars 4.06 score 63 dependencies 12 dependents 2.7k downloads

Last updated 9 days agofrom:d1c62b761ab0f4212986154dad931ef4792f378f

Exports:.assertRenameErrorModelLine.cbindOme.clearPipe.collectWarnings.copyUi.expandPars.getLastIdLvl.handleSingleErrTypeNormOrTFoceiBase.iniGetAppendArg.iniHandleFixOrUnfix.iniHandleLine.malert.matchesLangTemplate.minfo.modelHandleModelLines.msuccess.mwarn.quoteCallInfoLines.rxDocTable.rxFromSE.rxGetHiBoundaryPred1AndIni.rxGetLambdaFromPred1AndIni.rxGetLowBoundaryPred1AndIni.rxGetPredictionDVTransform.rxGetPredictionF.rxGetPredictionFTransform.rxGetVarianceForErrorType.rxIsLinCmt.rxJacobian.rxLinCmtGen.rxPrune.rxRename.rxSens.rxToSE.rxWithOptions.rxWithSink.rxWithSinkBoth.rxWithWd.s3register.useUtf.vecDf%>%add.dosingadd.samplingaesas.etas.inias.modelas.rxEvidas.rxRateDuras.rxUiassertRxUiassertRxUiEstimatedResidualsassertRxUiMixedOnlyassertRxUiMuRefOnlyassertRxUiNormalassertRxUiPopulationOnlyassertRxUiPredictionassertRxUiRandomOnIdOnlyassertRxUiSingleEndpointassertRxUiTransformNormalbinomProbscvPosterfetetExpandetRbindetRepetSeqetTranseventTableexpand_limitsexpitfacet_wrapfindLhsforderForceBasegammapgammapDergammapInvgammapInvagammaqgammaqInvgammaqInvagenShinyApp.templategeom_amtgeom_censgeom_linegetBaseIniSimModelgetBaseSimModelgetBaseSymengineModelgetRxThreadsggplotguide_noneiniini<-invWR1dis.rxSolvelabel_bothlabel_contextlabel_valuelabel_wrap_genllikBetallikBinomllikCauchyllikChisqllikExpllikFllikGammallikGeomllikNbinomllikNbinomMullikNormllikPoisllikTllikUnifllikWeibulllogitlogitNormInfolotrilowergammameanProbsmodelmodel<-modelExtractodeMethodToIntphiprobitprobitInvprobitNormInforinvchisqrLKJ1rxAllowUnloadrxAppendModelrxAssignControlValuerxAssignPtrrxbetarxbinomrxBlockZerosrxCrxCatrxcauchyrxCbindStudyIndividualrxChainrxChain2rxchisqrxCleanrxCombineErrorLinesrxCompilerxConditionrxControlrxControlUpdateSensrxCoresrxCreateCacherxDrxDeleterxDemoteAddErrrxDerivedrxDfdyrxDllrxDllLoadedrxDynLoadrxDynUnloadrxErrTypeCombinerxEtDispatchSolverxEvidrxexprxExpandFEta_rxExpandGridrxExpandGrid_rxExpandIfElserxExpandSens_rxExpandSens2_rxfrxFixPoprxForgetrxFromSErxFunrxgammarxgeomrxGetControlrxGetDistributionSimulationLinesrxGetLinrxGetModelrxGetrxode2rxGetSeedrxHtmlrxIndLinStaterxIndLinStrategyrxInitrxInitsrxInvrxIsrxIsCurrentrxIsLoadedrxLhsrxLoadrxLockrxMd5rxModels_rxModelVarsrxModelVarsS3rxnbinomrxnbinomMurxnormrxNormrxnormVrxodeRxODErxode<-RxODE<-rxode2rxode2<-rxOptExprrxordrxParamrxParamsrxParseErrrxParsePkrxParsePredrxPkgrxpoisrxPprxPreferredDistributionNamerxProgressrxProgressAbortrxProgressStoprxPrunerxRateDurrxReloadrxRemoveControlrxRenamerxRepR0_rxReqrxRmFunrxRmvnrxSrxSeedEngrxSetControlrxSetCovariateNamesForPipingrxSetIni0rxSetPipingAutorxSetProdrxSetProgressBarrxSetSeedrxSetSilentErrrxSetSumrxSetupInirxSetupScalerxShinyrxSimThetaOmegarxSolverxSolveFreerxSolveSetuprxSplitPlusQrxStackrxStaterxSumProdModelrxSupportedFunsrxSuppressMsgrxSymInvCholrxSymInvCholCreaterxSymInvCholNrxSyncOptionsrxtrxTempDirrxTestrxThemerxTickrxToSErxTransrxUiCompressrxUiDecompressrxUiGetrxunifrxUnloadrxUnloadAllrxUnlockrxUserxValidaterxVersionrxweibullrxWithPreserveSeedrxWithSeedscale_typescale_x_continuousscale_x_datescale_x_discretescale_y_continuousscale_y_datescale_y_discretesetRxThreadsstat_amtstat_censtoTrialDurationuppergammawaiverwrite.template.serverwrite.template.uixlabylabzeroRe

Dependencies:backportsBHcachemcheckmateclicolorspacecrayondata.tabledigestdparserevaluatefansifarverfastmapggplot2gluegtablehighrinlineisobandknitrlabelinglatticelazyevallifecyclelotrimagrittrMASSMatrixmemoisemgcvmunsellnlmepillarpkgconfigPreciseSumsqsR6RApiSerializeRColorBrewerRcppRcppArmadilloRcppEigenRcppParallelrexrlangrxode2etrxode2llrxode2parserxode2randomscalessitmoStanHeadersstringfishsymenginesystibbleutf8vctrsviridisLitewithrxfunyaml

rxode2 ODE solving syntax

Rendered fromrxode2-syntax.Rmdusingknitr::rmarkdown_notangleon Jun 14 2024.

Last update: 2023-08-28
Started: 2021-12-01

Readme and manuals

Help Manual

Help pageTopics
This copies the rxode2 UI object so it can be modified.copyUi
Handle the single error for normal or t distributions.handleSingleErrTypeNormOrTFoceiBase
Check if a language object matches a template language object.matchesLangTemplate
Handle model lines.modelHandleModelLines
Returns quoted call information.quoteCallInfoLines
Internal function to generate the model variables for a linCmt() model.rxLinCmtGen
Temporarily set options then restore them while running code.rxWithOptions
Temporarily set options then restore them while running code.rxWithWd
Turn into an ini block for initializationas.ini as.ini.call as.ini.character as.ini.data.frame as.ini.default as.ini.lotriFix as.ini.matrix
Turn into a model expressionas.model as.model.call as.model.character as.model.default as.model.list
As rxode2 uias.rxUi as.rxUi.default as.rxUi.function as.rxUi.rxModelVars as.rxUi.rxode2 as.rxUi.rxode2tos as.rxUi.rxUi
Assert properties of the rxUi modelsassertRxUi assertRxUiEstimatedResiduals assertRxUiMixedOnly assertRxUiMuRefOnly assertRxUiNormal assertRxUiPopulationOnly assertRxUiPrediction assertRxUiRandomOnIdOnly assertRxUiSingleEndpoint assertRxUiTransformNormal
Calculate expected confidence bands with binomial sampling distributionbinomProbs binomProbs.default
Error functionerf
Gammap: normalized lower incomplete gamma functiongammap
gammapDer: derivative of gammapgammapDer
gammapInv and gammapInva: Inverses of normalized gammap functiongammapInv gammapInva
Gammaq: normalized upper incomplete gamma functiongammaq
gammaqInv and gammaqInva: Inverses of normalized gammaq functiongammaqInv gammaqInva
Generate an example (template) of a dosing regimen shiny appgenShinyApp.template write.template.server write.template.ui
Get/Set the number of threads that rxode2 usesgetRxThreads rxCores setRxThreads
Ini block for rxode2/nlmixr modelsini ini.default ini.rxUi
Assign the ini block in the rxode2 related objectini<-
Calculate the log likelihood of the binomial function (and its derivatives)llikBeta
Calculate the log likelihood of the binomial function (and its derivatives)llikBinom
log likelihood of Cauchy distribution and it's derivatives (from stan)llikCauchy
log likelihood and derivatives for chi-squared distributionllikChisq
log likelihood and derivatives for exponential distributionllikExp
log likelihood and derivatives for F distributionllikF
log likelihood and derivatives for Gamma distributionllikGamma
log likelihood and derivatives for Geom distributionllikGeom
Calculate the log likelihood of the negative binomial function (and its derivatives)llikNbinom
Calculate the log likelihood of the negative binomial function (and its derivatives)llikNbinomMu
Log likelihood for normal distributionllikNorm
log-likelihood for the Poisson distributionllikPois
Log likelihood of T and it's derivatives (from stan)llikT
log likelihood and derivatives for Unif distributionllikUnif
log likelihood and derivatives for Weibull distributionllikWeibull
logit and inverse logit (expit) functionsexpit logit logitNormInfo probitNormInfo
lowergamma: upper incomplete gamma functionlowergamma
Calculate expected confidence bands or prediction intreval with normal or t sampling distributionmeanProbs meanProbs.default
Model block for rxode2/nlmixr modelsmodel model.default model.function model.rxModelVars model.rxode2 model.rxUi
Assign the model block in the rxode2 related objectmodel<-
Extract model lines from a rxui modelmodelExtract modelExtract.default modelExtract.function modelExtract.rxModelVars modelExtract.rxode2 modelExtract.rxUi
Conversion between character and integer ODE integration methods for rxode2odeMethodToInt
Plot rxode2 objectsplot.rxSolve plot.rxSolveConfint1 plot.rxSolveConfint2
probit and inverse probit functionsprobit probitInv
Allow unloading of dllsrxAllowUnload
Append two rxui models togetherrxAppendModel
Assign Control VariablerxAssignControlValue
Assign pointer based on model variablesrxAssignPtr
Simulate beta variable from threefry generatorrxbeta
Simulate Binomial variable from threefry generatorrxbinom
Simulate Cauchy variable from threefry generatorrxcauchy
Simulate chi-squared variable from threefry generatorrxchisq
Cleanup anonymous DLLs by unloading themrxClean
Compile a model if neededrxCompile rxCompile.character rxCompile.rxDll rxCompile.rxModelVars rxCompile.rxode2
This updates the tolerances based on the sensitivity equationsrxControlUpdateSens
This will create the cache directory for rxode2 to save between sessionsrxCreateCache
Add to rxode2's derivative tablesrxD
Delete the DLL for the modelrxDelete
Jacobian and parameter derivativesrxDfdy
Simulate exponential variable from threefry generatorrxexp
Simulate F variable from threefry generatorrxf
Apply the fixed population estimated parametersrxFixPop
Add/Create C functions for use in rxode2rxFun rxRmFun
Simulate gamma variable from threefry generatorrxgamma
Simulate geometric variable from threefry generatorrxgeom
rxGetControl option from uirxGetControl
Get the linear compartment model true functionrxGetLin
Get rxode2 model from objectrxGetrxode2
Format rxSolve and related objects as html.rxHtml rxHtml.rxSolve
Inductive linearization solverrxIndLin_
Set the preferred factoring by staterxIndLinState
This sets the inductive linearization strategy for matrix buildingrxIndLinStrategy
Invert matrix using RcppArmadillo.rxInv
Checks if the rxode2 object was built with the current buildrxIsCurrent
Left handed VariablesrxLhs
Lock/unlocking of rxode2 dll filerxLock rxUnlock
Simulate Binomial variable from threefry generatorrxnbinom rxnbinomMu
Get the normalized modelrxNorm
Simulate random normal variable from threefry generatorrxnorm rxnormV
Create an ODE-based model specificationRxODE rxode rxode2
Set the function body of an rxUi object while retaining other object information (like data)rxode2<- rxode2<-.default rxode2<-.function RxODE<- rxode<-
Optimize rxode2 for computer evaluationrxOptExpr
Simulate ordinal valuerxord
Parameters specified by the modelrxParam rxParams rxParams.rxEt rxParams.rxode2 rxParams.rxSolve
Creates a package from compiled rxode2 modelsrxPkg
Simulate random Poisson variable from threefry generatorrxpois
Simulate a from a Poisson processrxPp
Change distribution name to the preferred distribution name termrxPreferredDistributionName
rxode2 progress bar functionsrxProgress rxProgressAbort rxProgressStop rxTick
rxRemoveControl options for UI objectrxRemoveControl
Rename items inside of a 'rxode2' ui model.rxRename rename.function rename.rxUi rxRename rxRename.default rxRename.function rxRename.rxUi
A list and description of rxode2 supported reserved keywordsrxReservedKeywords
A description of Rode2 supported residual errorsrxResidualError
Load a model into a symengine environmentrxS
rxSetControl options for UI objectrxSetControl
Assign covariates for pipingrxSetCovariateNamesForPiping
Set the variables for the model piping automatic covarite selectionrxSetPipingAuto
Defunct setting of productrxSetProd
Set timing for progress barrxSetProgressBar
Defunct setting of sumrxSetSum
Use Shiny to help develop an rxode2 modelrxShiny rxShiny.default rxShiny.rxSolve
Simulate Parameters from a Theta/Omega specificationrxSimThetaOmega
Options, Solving & Simulation of an ODE/solved systempredict.function predict.rxEt predict.rxode2 predict.rxParams predict.rxSolve predict.rxUi rxControl rxSolve rxSolve.default rxSolve.function rxSolve.nlmixr2FitCore rxSolve.nlmixr2FitData rxSolve.rxode2tos rxSolve.rxUi simulate.rxode2 simulate.rxParams simulate.rxSolve solve.function solve.rxEt solve.rxode2 solve.rxParams solve.rxSolve solve.rxUi update.rxSolve
State variablesrxState
Recast model in terms of sum/prodrxSumProdModel
Get list of supported functionsrxSupportedFuns
Respect suppress messagesrxSuppressMsg
Get Omega^-1 and derivativesrxSymInvChol
Sync options with rxode2 variablesrxSyncOptions
A list and description of Rode supported syntax functionsrxSyntaxFunctions
Simulate student t variable from threefry generatorrxt
Get the rxode2 temporary directoryrxTempDir
rxTheme is the ggplot2 theme for rxode2 plotsrxTheme
rxode2 to symengine environment.rxFromSE .rxToSE rxFromSE rxToSE
Translate the model to C code if neededrxTrans rxTrans.character rxTrans.default
Compress/Decompress 'rxode2' uirxUiCompress rxUiDecompress
S3 for getting information from UI modelrxUiGet rxUiGet.allCovs rxUiGet.cmtLines rxUiGet.covLhs rxUiGet.default rxUiGet.dvidLine rxUiGet.etaLhs rxUiGet.fun rxUiGet.funPrint rxUiGet.funTxt rxUiGet.ini rxUiGet.iniFun rxUiGet.lhsCov rxUiGet.lhsEta rxUiGet.lhsTheta rxUiGet.lhsVar rxUiGet.lstChr rxUiGet.md5 rxUiGet.model rxUiGet.modelDesc rxUiGet.modelFun rxUiGet.multipleEndpoint rxUiGet.muRefTable rxUiGet.omega rxUiGet.params rxUiGet.paramsLine rxUiGet.simulationIniModel rxUiGet.simulationModel rxUiGet.simulationSigma rxUiGet.symengineModelNoPrune rxUiGet.symengineModelPrune rxUiGet.theta rxUiGet.thetaLhs rxUiGet.thetaLower rxUiGet.thetaUpper rxUiGet.varLhs
Simulate uniform variable from threefry generatorrxunif
Unloads all rxode2 compiled DLLsrxUnloadAll
Use model object in your packagerxUse
Validate rxode2 This allows easy validation/qualification of nlmixr by running the testing suite on your system.rxTest rxValidate
Simulate Weibull variable from threefry generatorrxweibull
Dosing/Amt geom/statgeom_amt stat_amt
Censoring geom/statgeom_cens stat_cens
Print expanded information about the rxode2 object.summary.rxode2
Update for rxUiupdate.rxUi
uppergamma: upper incomplete gamma functionuppergamma
Set random effects and residual error to zerozeroRe