Rdocumentation
powered by
Learn R Programming
⚠️
There's a newer version (1.5.2) of this package.
Take me there.
mrgsolve (version 1.0.2)
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
Link to current version
Version
Version
1.5.2
1.5.1
1.4.1
1.4.0
1.3.0
1.1.1
1.0.9
1.0.8
1.0.6
1.0.4
1.0.3
1.0.2
1.0.0
0.11.1
0.11.0
0.10.7
0.10.4
0.10.1
0.10.0
0.9.2
0.9.1
0.9.0
0.8.12
0.8.11
0.8.10
0.8.9
0.8.6
Install
install.packages('mrgsolve')
Monthly Downloads
1,238
Version
1.0.2
License
GPL (>= 2)
Issues
85
Pull Requests
5
Stars
140
Forks
35
Repository
https://github.com/metrumresearchgroup/mrgsolve
Maintainer
Kyle T Baron
Last Published
March 17th, 2022
Functions in mrgsolve (1.0.2)
Search all functions
as.ev
Coerce an object to class ev
PKMODEL
Parse PKMODEL BLOCK data
as.list,mrgsims-method
Coerce an mrgsims object to list
Req
Request simulated output
as_data_set
Create a simulation data set from ev objects
as_deslist
Create a list of designs from a data frame
BLOCK_PARSE
Functions to parse code blocks
aboutsolver
About the lsoda differential equation solver used by mrgsolve
as.list,mrgmod-method
Coerce a model object to list
blocks
Return the code blocks from a model specification file
cama
Run the model cama function
collapse_omega
Collapse OMEGA or SIGMA matrix lists
mutate.ev
dplyr verbs for event objects
code
Extract the code from a model
ev_days
Schedule dosing events on days of the week
ev
Event objects for simulating PK and other interventions
ev_assign
Replicate a list of events into a data set
env_ls
List objects in the model environment
cmtn
Get the compartment number from a compartment name
env_get
Return model environment
cmt_list-class
S4 cmt_list class
data_set
Select and modify a data set for simulation
design
Set observation designs for the simulation
ev_methods
Various methods for event objects
collapse_matrix
Collapse the matrices of a matlist object
$,ev-method
Select columns from an ev object
ev_rep
Replicate an event object
ev_ops
Operations for ev objects
cvec
Create create character vectors
expand.idata
Create template data sets for simulation
exdatasets
Example input data sets
details
Extract model details
env_eval
Re-evaluate the code in the ENV block
is.mrgsims
Check if an object is mrgsim output
is.mrgmod
Check if an object is a model object
carry_out
Select items to carry into simulated output
lctran
Change the case of nmtran-like data items
ev-class
S4 events class
env_update
Update objects in model environment
knobs
Run sensitivity analysis on model settings
ev_rx
Create intervention objects from Rx input
ev_repeat
Repeat a block of dosing events
mcRNG
Set RNG to use L'Ecuyer-CMRG
matrix_helpers
Create matrices from vector input
ev_seq
Schedule a series of event objects
idata_set
Select and modify a idata set for simulation
loadso
Load the model shared object
house
Return a pre-compiled, PK/PD model
file_show
Show model specification and C++ files
as_bmat
Coerce R objects to block or diagonal matrices
c,matlist-method
Operations with matlist objects
expand_observations
Insert observations into a data set
matlist-class
S4 class matlist
matlist
Methods for working with matrix-list objects
lower2matrix
Create a square numeric matrix from the lower-triangular elements
mread
Read a model specification file
modlib_viral
modlib: HCV viral dynamics models
modelparse
Parse model specification text
modlib
Internal model library
evd
Create an event object with data-like names
init
Methods for working with the model compartment list
mcode
Write, compile, and load model code
modlib_pkpd
modlib: Pharmacokinetic / pharmacodynamic models
inventory
Check whether all required parameters needed in a model are present in an object
merge.list
Merge two lists
modlib_details
modlib: PK/PD Model parameters, compartments, and output variables
modlib_pk
modlib: Pharmacokinetic models
modlib_tmdd
modlib: Target mediated disposition model
mod
Return the model object
mrgsims
Methods for working with
mrgsims
objects
mrgsim_variants
mrgsim variant functions
mvgauss
Simulate from a multivariate normal distribution with mean zero
names,mrgmod-method
Get all names from a model object
mrgsim
Simulate from a model object
mrgsim_q
Simulate from a model object with quicker turnaround
numerics_only
Prepare data.frame for input to mrgsim
mrgsims-class
S4 class for mrgsolve simulation output
numericlist
Methods for numericlist
modMATRIX
Create a matrix
mrgsims_dplyr
Methods for handling output with dplyr verbs
param
Create and work with parameter objects
obsaug
Augment observations in the simulated output
read_nmext
Extract estimates from NONMEM ext file
mrgsolve
mrgsolve
mrgsims_modify
Methods for modifying mrgsims objects
realize_addl
Make addl doses explicit in an event object or data set
reexports
Objects exported from other packages
render
Render a model to a document
parameter_list-class
S4 parameter_list class
numericlist-class
S4 class numeric list
plot_mrgsims
Generate a quick plot of simulated data
reserved
Reserved words
plot,batch_mrgsims,missing-method
Plot method for mrgsims objects
numeric2diag
Create a diagonal numeric matrix from diagonal elements
revar
Get model random effect variances and covariances
nmext
Import model estimates from a NONMEM ext file
see
Print model code to the console
nmxml
Import model estimates from a NONMEM xml file
solversettings
Optional inputs for lsoda
soloc
Return the location of the model shared object
stime
Get the times at which the model will be evaluated
summary.mrgmod
Print summary of a mrgmod object
show,cmt_list-method
Show the compartment list
touch_funs
Get inits from compiled function
within
Update parameters, initials, and settings within a model object
omega
Manipulate OMEGA matrices
$,mrgmod-method
Select parameter values from a model object
mrgmod-class
S4 class for mrgsolve model object
tscale
Re-scale time in the simulated output
zero_re
Zero out random effects in a model object
obsonly
Collect only observations in the simulated output
outvars
Show names of current output variables
c,tgrid-method
Operations with tgrid objects
show,parameter_list-method
Show the parameter list
tgrid
Create a simtime object
show,mrgmod-method
Print model details
plot_sims
Plot data as an mrgsims object
scrape_and_call
Scrape options and pass to function
qsim
Basic, simple simulation from model object
scrape_opts
Scrape options from a code block
update
Update the model object
sigma
Manipulate SIGMA matrices
simargs
Access or clear arguments for calls to mrgsim
valid_data_set
Validate and prepare a data sets for simulation
valid_idata_set
Validate and prepare idata data sets for simulation
wf_sweep
Simulate a sequence of parameters
%>%
Forward pipe