calc.ctmax: Calculate Cmax and Tmax

Description Usage Arguments Details Value Examples

View source: R/calc.ctmax.r

Description

Calculates Cmax and Tmax from raw data for each PK curve defined using by.

Usage

1
calc.ctmax(x, by = character(0), timevar = "time", depvar = "dv")

Arguments

x

data.frame

by

column names in x indicating grouping variables

timevar

variable name containing the actual sampling time after dose

depvar

variable name containing the dependent variable (e.g., concentration)

Details

Input dataset can contain all uncorrected data, including LOQ; estimate first occurence of maximum concentration for each PK curve; if all concentrations are NA, sets Cmax and Tmax also to NA.

Value

A dataset with estimates for the Cmax (maximum concentration) and Tmax (time of first occurence of cmax) parameters: one observation per subject

Examples

1
2
3
example(est.thalf)
ctmax <- x %>% calc.ctmax(by = 'subject')
ctmax %>% head

qpNCA documentation built on Aug. 16, 2021, 5:08 p.m.