get_parmvar: Get the variables within a NONMEM model that should be passed...

View source: R/get_parmvar.r

get_parmvarR Documentation

Get the variables within a NONMEM model that should be passed to the simulation model

Description

This function go through all formulas and control flows to check if a parameter is created ad-hoc or taken from the input file. This is important as these variables need to be set for simulation

Usage

get_parmvar(lstblock, returnall = FALSE)

Arguments

lstblock

list with each item being a separate structured dollar block, usually obtain from nmlistblock

returnall

logical indicating if all variables should be returned or just the ones that are not defined

Value

a vector with model variables for the simulation model

Author(s)

Richard Hooijmaijers

Examples


mod    <- system.file("example_models","PK.1CMT.ORAL.COV.mod", package = "amp.sim")
mdll   <- get_nmblock(mod,block=c("PK","DES"))
mdlls  <- nmlistblock(mdll)
get_parmvar(mdlls)


amp.sim documentation built on May 7, 2026, 5:08 p.m.