get_param: Get parameter values from model or ext file

View source: R/get_param.r

get_paramR Documentation

Get parameter values from model or ext file

Description

This function gets the parameter values from a NONMEM model or ext file including naming and additional variables if present

Usage

get_param(model, lstblock, ext = NULL, addparam = TRUE)

Arguments

model

character vector with the model content

lstblock

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

ext

character with the name of the NONMEM ext file (if not provided estimates are read directly from the list block)

addparam

logical indicating if the function should try to add parameters (besides THETAs and the ones defined in covariates) the additional parameters are always returned so it can be used for warnings

Value

a list with parameters, names and matrices

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_param(mod, mdlls)


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