build_obs_records: Build NONMEM Observation Records

View source: R/nm_helpers.R

build_obs_recordsR Documentation

Build NONMEM Observation Records

Description

Build NONMEM observation records from a PC-like data.frame. PC must contain: SUBJID, DAT2, TIME, DV, CMT. Output rows have AMT = 0, RATE = 0; DV that is NA or 0 -> MDV = 1.

Usage

build_obs_records(PC)

Arguments

PC

data.frame with observation information.

Value

data.frame of observation records with columns SUBJID, DAT2, TIME, AMT, RATE, CMT, DV, MDV.


nmw documentation built on May 8, 2026, 9:07 a.m.