Skip to contents

Get unit for parameters by name

Usage

get_parameter_unit(model_comments, names, kind = NULL)

Arguments

model_comments

A ModelComments object

names

Character vector of parameter names. Can be user-defined names (e.g., "CL", "V", "OM1") or NONMEM names (e.g., "THETA1", "OMEGA(1,1)"), or a mix of both.

kind

Optional character. Filter by parameter kind ("THETA", "OMEGA", or "SIGMA"). If NULL, searches all kinds.

Value

Character vector of unit values (e.g., "L/h", "L"). Returns NA for names not found.