Skip to contents

Returns a data frame mapping NONMEM parameter names to user-defined names and display names. Row names are set to NONMEM names for easy access (e.g., df["THETA1", "name"]).

Usage

get_parameter_names(x, lookup_path = NULL)

Arguments

x

A ModelComments object or a hyperion_nonmem_model object. If a model object is provided, parameter info is extracted automatically.

lookup_path

Optional path to a TOML lookup file. Only used when x is a model object. If provided, fills NULL fields from the lookup.

Value

Data frame with columns: name, display. Row names are NONMEM parameter names (e.g., "THETA1", "OMEGA(1,1)").

Details

This function handles both typed (type1) and raw comment formats, extracting parameter names regardless of the comment style used in the model file.