get_inits: get the initial states for the differential equations

View source: R/get_inits.r

get_initsR Documentation

get the initial states for the differential equations

Description

This function will extracts the initial states for the differential equations from a NONMEM model

Usage

get_inits(lstblock)

Arguments

lstblock

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

Value

a named vector with the state values

Author(s)

Richard Hooijmaijers

Examples


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


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