NMsim0.1.5 package

Seamless 'Nonmem' Simulation Platform

add

Create function that adds text elements to vector

addEVID2

Add simulation records to dosing records

addResVar

Add residual variability based on parameter estimates

callNonmemDirect

Generate system command to call Nonmem directly

checkTimes

Test if file modification times indicate that Nonmem models should be ...

cleanStrings

Drop spaces and odd characters. Use to ensure generated file names are...

completeCov

Expand a set of covariate values into a data.set with reference value

dtapply

Apply function and return a data.table

expandCovs

Create data set where each covariate is univariately varied

findUpdated

Filter control streams to only those updated since last run

genPhiFile

Generate a .phi file for further simulation with Nonmem

inputArchiveDefault

Default location of input archive file

NMcreateDoses

Easily and flexibly generate dosing records

NMcreateMatLines

Create text lines for OMEGA and SIGMA Nonmem sections

NMexec

Execute Nonmem and archive input data with model files

NMexecDirectory

Execute Nonmem inside a dedicated directory

NMgenPNM

Generate PNM file for sge clusters

NMreadSim

Read simulation results based on NMsim's track of model runs

NMreadSimModTab

Read simulation results from rds objects and/or NMsimModTab objects

NMreadSimModTabOne

Read simulation results from an rds or a NMsimModTab object

NMreadSimRes

Read simulation results from data.frames or fst files

NMreadSimResOne

read one sim element. This will be run in lapply in NMreadSim.

NMreplaceInits

Replace initial values in Nonmem control stream

NMrunLin

Internal function to run Nonmem on linux

NMseed

Add seed string to simulation model data.table

NMsim_asis

Simulation method that uses the provided control stream as is

NMsim_default

Transform an estimated Nonmem model into a simulation control stream

NMsim_EBE

Use emperical Bayes estimates to simulate re-using ETAs

NMsim_known

NMsim_known is an old name for NMsim_EBE()

NMsim_NWPRI

Simulate with parameter variability using the NONMEM NWPRI subroutine

NMsim_typical

Typical subject simiulation method

NMsim_VarCov

Simulate with parameter values sampled from a covariance step

NMsim

Simulate from an estimated Nonmem model

NMsimCheckMod

Check a simulation control streams for things that can cause trouble i...

NMsimModTabOperations

Remove NMsimModTab class and discard NMsimModTab meta data

NMsimResOperations

Remove NMsimRes class and discard NMsimRes meta data

NMsimTestConf

Summarize and test NMsim configuration

NMupdateInits

Create new Nonmem control stream with updated initial parameter values

NWPRI_df

Add degrees of freedom by OMEGA/SIGMA block

overwrite

Create function that modifies text elements in a vector

padZeros

pad zeros on integers

prettyMatLines

Print OMEGA and SIGMA matrices for NONMEM sections in block format. No...

readParsWide

Parameter data from csv

sampleParsSimpar

Sample model parameters using the simpar package

simpleCharArg

Check that a variable is a single character string meeting specified r...

simPopEtas

Generate a population based on a Nonmem model

summarizeCovs

Summarize simulated exposures relative to reference subject

writeTextFile

Conveniently writeLines to file

A complete and seamless 'Nonmem' simulation interface within R. Turns 'Nonmem' control streams into simulation control streams, executes them with specified simulation input data and returns the results. The simulation is performed by 'Nonmem', eliminating manual work and risks of re-implementation of models in other tools.

  • Maintainer: Philip Delff
  • License: MIT + file LICENSE
  • Last published: 2024-11-14