desc {PKtools} | R Documentation |
desc calculates select descriptive statistics for the variable X.
desc(y, pcts, nsig)
y |
variable of interest |
pcts |
percentiles of interest, the default is c(0.025, 0.05, 0.95, 0.975) |
nsig |
number of significant figures, the default is 4 |
desc prints descriptive statistics including mean, median, standard deviation, range, min, max, and select percentiles.
M.S. Blanchard <sblanchard@coh.org>
library(PKtools) library(nlme) data(Theoph) Theoph<-Theoph[Theoph$Time!=0,] id<-as.numeric(as.character(Theoph$Subject)) dose<-Theoph$Dose time<-Theoph$Time concblq<-round(sqrt(Theoph$conc),4) conc<-concblq Theo<-data.frame(cbind(id,dose,time,conc)) names(Theo)<-c("id","dose","time","conc") desc(Theo$conc)