Displaying 1 result from an estimated 1 matches for "timebestestim".
2011 Aug 02
2
Help with aggregate syntax for a multi-column function please.
...ion such as
mean, whereas this AUC function requires four arguments.
Could someone kindly show me the syntax?
This is what I've tried so far:
AUC.DF<- aggregate(PKdata, list(PKdata$Cycle, PKdata$DoseDayNominal,
PKdata$Drug),
function(x,tm,pt,conc) {AUC(x)},
tm="TimeBestEstimate", pt="Pt", conc="ConcentrationBQLzero" )
AUC.DF<- aggregate(PKdata, list(PKdata$Cycle, PKdata$DoseDayNominal,
PKdata$Drug),
function(x) {AUC(x,"TimeBestEstimate", "Pt",
"ConcentrationBQLzero" )} )
AUC syntax is:
ar...