Learn R Programming

rxode2 (version 2.0.7)

etTrans: Event translation for rxode2

Description

Event translation for rxode2

Usage

etTrans(
  inData,
  obj,
  addCmt = FALSE,
  dropUnits = FALSE,
  allTimeVar = FALSE,
  keepDosingOnly = FALSE,
  combineDvid = NULL,
  keep = character(0)
)

Arguments

inData

Data frame to translate

obj

Model to translate data

addCmt

Add compartment to data frame (default FALSE).

dropUnits

Boolean to drop the units (default FALSE).

allTimeVar

Treat all covariates as if they were time-varying

keepDosingOnly

keep the individuals who only have dosing records and any trailing dosing records after the last observation.

combineDvid

is a boolean indicating if rxode2 will use DVID on observation records to change the cmt value; Useful for multiple-endpoint nlmixr models. By default this is determined by option("rxode2.combine.dvid") and if the option has not been set, this is TRUE. This typically does not affect rxode2 simulations.

keepF

This is a named vector of items you want to keep in the final rxode2 dataset. For added rxode2 event records (if seen), last observation carried forward will be used.

Value

Object for solving in rxode2