Learn R Programming

pharmr (version 1.4.0)

get_admid: get_admid

Description

Get the admid from model dataset

If an administration column is present this will be extracted otherwise an admid column will be created based on the admids of the present doses. This is dependent on the presence of a CMT column to be generated correctly.

When generated, admids of events in between doses is set to the last used admid.

Usage

get_admid(model)

Value

(data.frame) ADMID

Arguments

model

(Model) Pharmpy model