Learn R Programming

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

mrgsolve (version 1.4.1)

Simulate from ODE-Based Models

Description

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

Copy Link

Version

Install

install.packages('mrgsolve')

Monthly Downloads

2,148

Version

1.4.1

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Kyle T Baron

Last Published

February 14th, 2024

Functions in mrgsolve (1.4.1)

env_ls

List objects in the model environment
env_get

Return model environment
design

Set observation designs for the simulation
ev_assign

Replicate a list of events into a data set
ev

Event objects for simulating PK and other interventions
ev_days

Schedule dosing events on days of the week
ev-class

S4 events class
cvec

Create create character vectors
env_eval

Re-evaluate the code in the ENV block
env_update

Update objects in model environment
details

Extract model details
ev_seq

Schedule a series of event objects
ev_rx

Create intervention objects from Rx input
mutate.ev

dplyr verbs for event objects
evd

Create an event object with data-like names
exdatasets

Example input data sets
ev_methods

Various methods for event objects
ev_rep

Replicate an event object
is.mrgsims

Check if an object is mrgsim output
inventory

Check whether all required parameters needed in a model are present in an object
is.mrgmod

Check if an object is a model object
ev_repeat

Repeat a block of dosing events
$,ev-method

Select columns from an ev object
expand.idata

Create template data sets for simulation
expand_observations

Insert observations into a data set
knobs

Run sensitivity analysis on model settings
lctran

Change the case of nmtran-like data items
as_bmat

Coerce R objects to block or diagonal matrices
matrix_helpers

Create matrices from vector input
matlist

Methods for working with matrix-list objects
house

Return a pre-compiled, PK/PD model
ev_ops

Operations for ev objects
file_show

Show model specification and C++ files
matlist-class

S4 class matlist
idata_set

Select and modify a idata set for simulation
init

Methods for working with the model compartment list
mcode

Write, compile, and load model code
mcRNG

Set RNG to use L'Ecuyer-CMRG
lower2matrix

Create a square numeric matrix from the lower-triangular elements
modlib_tmdd

modlib: Target mediated disposition model
c,matlist-method

Operations with matlist objects
modlib

Internal model library
modlib_viral

modlib: HCV viral dynamics models
loadso

Load the model shared object
modlib_pk

modlib: Pharmacokinetic models
modlib_details

modlib: PK/PD Model parameters, compartments, and output variables
merge.list

Merge two lists
modlib_pkpd

modlib: Pharmacokinetic / pharmacodynamic models
mod

Return the model object
modMATRIX

Create a matrix
modelparse

Parse model specification text
$,mrgmod-method

Select parameter values from a model object
mrgsim

Simulate from a model object
mrgsims_dplyr

Methods for handling output with dplyr verbs
mrgsims_modify

Methods for modifying mrgsims objects
mrgsim_variants

mrgsim variant functions
mrgsim_q

Simulate from a model object with quicker turnaround
mrgsims-class

S4 class for mrgsolve simulation output
mrgmod-class

S4 class for mrgsolve model object
mread

Read a model specification file
mrgsims

Methods for working with mrgsims objects
names,mrgmod-method

Get all names from a model object
mrgsolve-package

mrgsolve: Simulate from ODE-Based Models
obsaug

Augment observations in the simulated output
nmext

Import model estimates from a NONMEM ext file
mvgauss

Simulate from a multivariate normal distribution with mean zero
numericlist

Methods for numericlist
numeric2diag

Create a diagonal numeric matrix from diagonal elements
nmxml

Import model estimates from a NONMEM xml file
numerics_only

Prepare data.frame for input to mrgsim
outvars

Show names of current output variables
numericlist-class

S4 class numeric list
param_tags

Return parameter tags
plot,batch_mrgsims,missing-method

Plot method for mrgsims objects
omega

Manipulate OMEGA matrices
obsonly

Collect only observations in the simulated output
plot_sims

Plot data as an mrgsims object
plot_mrgsims

Generate a quick plot of simulated data
qsim

Basic, simple simulation from model object
parameter_list-class

S4 parameter_list class
param

Create and work with parameter objects
render

Render a model to a document
reserved

Reserved words
revar

Get model random effect variances and covariances
realize_addl

Make addl doses explicit in an event object or data set
see

Print model code to the console
read_nmext

Extract estimates from NONMEM ext file
reexports

Objects exported from other packages
scrape_and_call

Scrape options and pass to function
scrape_opts

Scrape options from a code block
show,cmt_list-method

Show the compartment list
c,tgrid-method

Operations with tgrid objects
sigma

Manipulate SIGMA matrices
stime

Get the times at which the model will be evaluated
simargs

Access or clear arguments for calls to mrgsim
solversettings

Optional inputs for lsoda
summary.mrgmod

Print summary of a mrgmod object
soloc

Return the location of the model shared object
show,mrgmod-method

Print model details
tgrid

Create a simtime object
show,parameter_list-method

Show the parameter list
valid_idata_set

Validate and prepare idata data sets for simulation
tscale

Re-scale time in the simulated output
zero_re

Zero out random effects in a model object
within

Update parameters, initials, and settings within a model object
touch_funs

Get inits from compiled function
wf_sweep

Simulate a sequence of parameters
%>%

Forward pipe
update

Update the model object
valid_data_set

Validate and prepare a data sets for simulation
blocks

Return the code blocks from a model specification file
as.list,mrgsims-method

Coerce an mrgsims object to list
PKMODEL

Parse PKMODEL BLOCK data
as.ev

Coerce an object to class ev
as_data_set

Create a simulation data set from ev objects
aboutsolver

About the lsoda differential equation solver used by mrgsolve
Req

Request simulated output
as_deslist

Create a list of designs from a data frame
as.list,mrgmod-method

Coerce a model object to list
BLOCK_PARSE

Functions to parse code blocks
cmtn

Get the compartment number from a compartment name
carry_out

Select items to carry into simulated output
cmt_list-class

S4 cmt_list class
cama

Run the model cama function
collapse_matrix

Collapse the matrices of a matlist object
check_data_names

Check input data set names against model parameters
collapse_omega

Collapse OMEGA or SIGMA matrix lists
data_set

Select and modify a data set for simulation
code

Extract the code from a model