blk.noninformativeDose: Flag Non-informative Dose Events

Description Usage Arguments Details Value Author(s) See Also Examples

Description

This function will flag doses that are non-informative in a PK data set because they either occur after the last non-dose event or they precede a dose given at steady state with no non-dose events occurring between the two.

Usage

1
blk.noninformativeDose(id, dose.ind, ss.ind = NULL)

Arguments

id

A valid block-format ID.

dose.ind

A logical vector in block-format with respect to id. Indicates rows corresponding to dose events.

ss.ind

A logical vector in block-format with respect to id. Indicates doses given at steady state.

Details

This function operates on a PK data set in block-format. Rows that corresponding to dose events are indicated by dose.ind, and rows that correspond to doses taken at steady-state are indicated by ss.ind. A steady-state event renders any dose events that precede it with no intervening non-dose events non-informative. Doses that occur at the end of a block (i.e. after the last non-dose event) are also considered non-informative. Non-informative dose events can effectively be removed from the data without affecting the analysis of these data.

Value

A logical vector in block-format with respect to id indicating dose events that are non-informative.

Author(s)

Ben Rich <benjamin.rich@certara.com>

See Also

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
require(nlme)
data(Phenobarb)
dat <- Phenobarb[1:56,]  # First 4 subjects
attach(dat)

cbind(dat, INTERDOSE.TIME=blk.intereventTime(time, asID(Subject), !is.na(dose)),
           IS.SS=blk.isSteadyState(time, asID(Subject), !is.na(dose), 12, 0.301, 60, dose),
           FLAG=blk.noninformativeDose(asID(Subject), !is.na(dose), blk.isSteadyState(time, asID(Subject), !is.na(dose), 12, 0.301, 60, dose)))

detach(dat)

benjaminrich/PCSmisc documentation built on May 24, 2019, 5:02 a.m.