Tmax {MIfuns} | R Documentation |
Calculate the time associated with the maximum concentration for each subject
Tmax(data, id = "ID", dv = "DV", time = "TIME")
data |
the name of the R data.frame containing the data to use for the Tmax calculation. |
time |
chronologically ordered time variable present in data |
id |
variable in data defining subject level data |
dv |
dependent variable used to calculate Tmax present in data |
The Tmax() function performs the calculation based on the variables id, time, and dv present in the R data object
one Tmax is returned for each subject
Developed by Metrum Institute (Bill Knebel, Tim Bergsma, and others).
MIfuns package available from Metrum Institute website (http://metruminstitute.org/
).