Package: mrgsolve 2.0.1

Kyle T Baron

mrgsolve: Simulate from ODE-Based Models

Fast simulation from ordinary differential equation (ODE) based models typically employed in quantitative pharmacology and systems biology.

Authors:Kyle T Baron [aut, cre], Bill Gillespie [ctb], Charles Margossian [ctb], Devin Pastoor [ctb], Bill Denney [ctb], Dilawar Singh [ctb], Felicien Le Louedec [ctb], Timothy Waterhouse [ctb], Kyle Meyer [ctb], Metrum Research Group [cph]

mrgsolve_2.0.1.tar.gz
mrgsolve_2.0.1.tar.gz(r-4.7-arm64)mrgsolve_2.0.1.tar.gz(r-4.7-x86_64)mrgsolve_2.0.1.tar.gz(r-4.6-arm64)mrgsolve_2.0.1.tar.gz(r-4.6-x86_64)
mrgsolve_2.0.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
mrgsolve/json (API)
NEWS

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

Bug tracker:https://github.com/metrumresearchgroup/mrgsolve/issues

Pkgdown/docs site:https://mrgsolve.org

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

Conda:

openblascpp

6.27 score 5 packages 1.9k scripts 2.1k downloads 11 mentions 141 exports 18 dependencies

Last updated from:616a8becbd. Checks:6 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK240
linux-devel-x86_64OK234
source / vignettesOK267
linux-release-arm64OK237
linux-release-x86_64OK233
wasm-releaseOK174

Exports:%>%%then%allparamas_bmatas_cmatas_data_frame.mrgsimsas_data_setas_deslistas_dmatas.data.frameas.evas.evdas.listas.matrixas.tbl.mrgsimsassign_evblocksbmatcarry_outcarry.outcheck_data_namescmatcmtncollapse_matrixcollapse_omegacollapse_sigmaconvert_fort_ifconvert_powconvert_semicolonscustom_atolcustom_rtolcustom_tolcvecdata_setdesigndmatdo_mrgsimenv_evalenv_getenv_get_envenv_get_objenv_lsenv_updateevev_assignev_daysev_expandev_repev_repeatev_rxev_seqevdevd_expandexpand_observationsexpand.evexpand.evdexpand.idatafile_showfilterfilter_simsget_tolget_tol_listheadhouseidata_setinitinventoryis.mrgmodis.mrgsimsknobslabelslctranloadsomcodemcode_cachemcRNGmodelparsemodelparse_rmdmodlibmodMATRIXmreadmread_cachemread_filemread_yamlmrgsimmrgsim_0mrgsim_dmrgsim_dfmrgsim_dimrgsim_emrgsim_eimrgsim_imrgsim_qmutate_simsmvgaussmwrite_cppmwrite_yamlnrownumerics_onlyobsaugobsonlyomatoutvarsparamparam_tagsparse_rxplotplot_simsqsimread_nmextrealize_addlreqReqreset_atolreset_rtolreset_tolrevars_seeselect_simsshowsimargssmatsolocstimesummarise.eachtailtgridtouch_funstscaleuctranupdateuse_custom_toluse_scalar_tolvalid_data_setvalid_data_set.matrixvalid_idata_setwarn_int_divwf_sweepyaml_to_cppzero_re

Dependencies:BHclidplyrgenericsgluelifecyclemagrittrpillarpkgconfigR6RcppRcppArmadillorlangtibbletidyselectutf8vctrswithr

Readme and manuals

Help Manual

Help pageTopics
mrgsolve: Simulate from ODE-Based Modelsmrgsolve-package mrgsolve
Select columns from an ev object$,ev-method [[,ev-method
Select parameter values from a model object$,mrgmod-method [,mrgmod-method [[,mrgmod-method
About the lsoda differential equation solver used by mrgsolveaboutsolver
Coerce R objects to block or diagonal matricesas_bmat as_bmat,ANY-method as_bmat,data.frame-method as_bmat,list-method as_bmat,numeric-method as_cmat as_dmat as_dmat,ANY-method as_dmat,data.frame-method as_dmat,list-method as_dmat,numeric-method
Create a simulation data set from ev objects or data framesas_data_set as_data_set,data.frame-method as_data_set,ev-method
Create a list of designs from a data frameas_deslist
Coerce an object to class evas.ev as.ev,data.frame-method as.ev,ev-method
Coerce a model object to listas.list,mrgmod-method
Coerce an mrgsims object to listas.list,mrgsims-method
Functions to parse code blocksBLOCK_PARSE CAPTURE CMT FIXED HANDLEMATRIX INIT PARAM THETA
Return the code blocks from a model specification fileblocks blocks,character-method blocks,mrgmod-method
Operations with matlist objectsc,matlist-method
Operations with tgrid objects*,tgrid,numeric-method *,tgrids,numeric-method +,tgrid,numeric-method +,tgrids,numeric-method c,tgrid-method c,tgrids-method tgrids_*_numeric tgrids_+_numeric tgrid_*_numeric tgrid_+_numeric
Select items to carry into simulated outputcarry.out carry_out
Check input data set names against model parameterscheck_data_names
Get the compartment number from a compartment namecmtn cmtn,mrgmod-method
Extract the code from a modelcode
Collapse the matrices of a matlist objectcollapse_matrix
Collapse OMEGA or SIGMA matrix listscollapse_omega collapse_sigma
Customize tolerances for specific compartmentscustom_atol custom_rtol custom_tol
Select a data set for simulationdata_set data_set,mrgmod,ANY-method data_set,mrgmod,data.frame-method data_set,mrgmod,ev-method
Set observation designs for the simulationdesign
Extract model detailsdetails
DSL preprocessing functionsconvert_fort_if convert_pow convert_semicolons dsl_preprocess warn_int_div
Re-evaluate the code in the ENV blockenv_eval
Return model environment or objects from the model environmentenv_get env_get.mrgmod env_get.mrgsims env_get_env env_get_env.mrgmod env_get_env.mrgsims env_get_obj
List objects in the model environmentenv_ls
Update objects in model environmentenv_update
Event objects for simulating PK and other interventionsev ev,ev-method ev,missing-method ev,mrgmod-method
Replicate a list of events into a data setassign_ev ev_assign
Schedule dosing events on days of the weekev_days
Replicate an event objectev_rep
Repeat a block of dosing eventsev_repeat
Create intervention objects from Rx inputev_rx ev_rx,character,missing-method ev_rx,mrgmod,character-method parse_rx
Schedule a series of event objectsev_seq seq.ev
Create an event object with data-like namesas.evd evd evd,ev-method evd,missing-method evd,mrgmod-method
Example input data setsexBoot exdatasets exidata exTheoph extran1 extran2 extran3
Insert observations into a data setexpand_observations
Create template data sets for simulationevd_expand ev_expand expand.ev expand.evd expand.idata
Extract rtol and atol information from a model objectget_tol get_tol_list
Select a idata set for simulationidata_set idata_set,mrgmod,ANY-method idata_set,mrgmod,data.frame-method
Methods for working with the model compartment listinit init,ANY-method init,list-method init,missing-method init,mrgmod-method init,mrgsims-method
Check whether all required parameters needed in a model are present in an objectinventory
Check if an object is a model objectis.mrgmod
Check if an object is mrgsims outputis.mrgsims
DEFUNCT: Run sensitivity analysis on model settingsknobs
Change the case of nmtran-like data itemslctran lctran.data.frame lctran.ev uctran uctran.data.frame uctran.ev
Load the model shared objectloadso loadso.mrgmod
Create matrices from vector inputbmat cmat dmat matrix_helpers
Write, compile, and load model codemcode mcode_cache
Set RNG to use L'Ecuyer-CMRGmcRNG
Internal model librarymodlib
modlib: PK/PD Model parameters, compartments, and output variablesmodlib_details
modlib: Pharmacokinetic modelsmodlib_pk
modlib: Pharmacokinetic / pharmacodynamic modelsmodlib_pkpd
modlib: Target mediated disposition modelmodlib_tmdd
modlib: HCV viral dynamics modelsmodlib_viral
Read a model specification filemread mread_cache mread_file
Read a model from yaml formatmread_yaml yaml_to_cpp
Simulate from a model objectdo_mrgsim mrgsim mrgsim_df
Simulate from a model object with quicker turnaroundmrgsim_q
mrgsim variant functionsmrgsim_0 mrgsim_d mrgsim_di mrgsim_e mrgsim_ei mrgsim_i mrgsim_variants
Methods for handling output with dplyr verbsas.tbl.mrgsims as_data_frame.mrgsims as_tibble.mrgsims distinct.mrgsims do.mrgsims filter.mrgsims group_by.mrgsims mrgsims_dplyr mutate.mrgsims pull.mrgsims select.mrgsims slice.mrgsims summarise.each summarise.mrgsims
Methods for modifying mrgsims objectsfilter_sims mrgsims_modify mutate_sims select_sims
dplyr verbs for event objectsfilter.ev mutate.ev select.ev
Write a model to native mrgsolve formatmwrite_cpp
Write model code to yaml formatmwrite_yaml
Get all names from a model objectnames,mrgmod-method
Import model estimates from a NONMEM ext filenmext
Import model estimates from a NONMEM xml fileNMXML nmxml
Prepare data.frame for input to mrgsim()numerics_only
Augment observations in the simulated outputobsaug
Collect only observation records in the simulated outputobsonly
Manipulate OMEGA matricesomat omat,list-method omat,matrix-method omat,missing-method omat,mrgmod-method omat,mrgsims-method omat,NULL-method omat,omegalist-method OMEGA omega
Show names of current output variablesoutvars
Create and work with parameter objectsallparam param param,ANY-method param,list-method param,missing-method param,mrgmod-method param,mrgsims-method
Return parameter tagsparam_tags
Parse PKMODEL BLOCK dataPKMODEL
Generate a quick plot of simulated dataplot plot,mrgsims,character-method plot,mrgsims,formula-method plot,mrgsims,missing-method plot_mrgsims
Plot data as an mrgsims objectplot_sims
Basic, simple simulation from model objectqsim
Extract estimates from NONMEM ext fileread_nmext
Make addl doses explicit in an event object or data setrealize_addl realize_addl.data.frame realize_addl.ev
Request simulated outputReq req req.mrgmod
Reserved wordsreserved
Reset all model tolerancesreset_atol reset_rtol reset_tol
Get model random effect variances and covariancesrevar revar,mrgmod-method
Print model code to the consolesee see,mrgmod-method
Manipulate SIGMA matricesSIGMA sigma smat smat,list-method smat,matrix-method smat,missing-method smat,mrgmod-method smat,mrgsims-method smat,NULL-method smat,sigmalist-method
Access or clear arguments for calls to mrgsim()simargs
Return the location of the model shared objectsoloc
Optional inputs for lsodasolversettings
Print summary of a mrgmod objectsummary.mrgmod
Re-scale time in the simulated outputtscale
Update the model objectupdate update,mrgmod-method update,omegalist-method update,parameter_list-method update,sigmalist-method
Set up a model object to use either scalar or custom tolerancesuse_custom_tol use_scalar_tol
Validate and prepare data sets for simulationvalid_data_set valid_data_set.matrix
Validate and prepare idata data sets for simulationvalid_idata_set
Update parameters, initials, and settings within a model objectwithin within,mrgmod-method within.mrgmod
Zero out random effects in a model objectzero_re zero_re,mrgmod-method