desc {PKtools}R Documentation

desc

Description

desc calculates select descriptive statistics for the variable X.

Usage

desc(y, pcts, nsig)

Arguments

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

Value

desc prints descriptive statistics including mean, median, standard deviation, range, min, max, and select percentiles.

Author(s)

M.S. Blanchard <sblanchard@coh.org>

See Also

tex

Examples

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)

[Package PKtools version 1.4-0 Index]