Displaying 1 result from an estimated 1 matches for "smindata".
Did you mean:
mindata
2007 Feb 15
1
Problem in summaryBy
...an = mean(x,T),
SD = sd(x,T),
CV = pCV(x),
median = median(x,T),
min = min(x,T),
max = max(x,T)
)
}
library(doBy)
# This does not produce correct minimum values
sData <- summaryBy(AUC ~ Analyte + Dose, data=df, FUN=myStats)
# This gives correct minimum values
sMinData <- summaryBy(AUC ~ Analyte + Dose, data=df, FUN=min)
Here are the results:
> sData
Analyte Dose AUC.n AUC.mean AUC.SD AUC.CV AUC.median AUC.min
AUC.max
1 RBV 200 4 32.353673 11.4244263 35.311064 32.353673 1
46.068889
2 RBV 400 4 78.568606 17.0237534 21.6...