Skip to contents

Walk up the based_on chain to find all ancestors of a model.

Usage

get_model_ancestors(lineage, model_name)

Arguments

lineage

A hyperion_nonmem_tree object from get_model_lineage()

model_name

Character, model name (e.g., "run001" or "run001.mod")

Value

Character vector of ancestor names (without .mod suffix), ordered from parent to root. Returns empty vector if no ancestors.