desc: Descriptive Statistics

Description Usage Arguments Value Author(s) Examples

Description

desc caculates select descriptive statistics for the variable y.

Usage

1
desc(y, pcts=c(0.025,0.05,0.95,0.975), nsig=4)

Arguments

y

variable of interest

pcts

selected percentiles, the default is c(0.025,0.05,0.95,0.975)

nsig

number of significant figures

Value

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

Author(s)

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
set.seed(1111)
OperChar<-teqrOCtox(
sim=500,
firstdose=2,
probt=c(.05,.15,.23,.34,.51,.76), 
cohortSize=3,
MaxNoCohorts=30,
MTDss=12,
pTarget=.2,
eq1=.05,
eq2=.05,
tootoxic=.34)
OperChar
TotalN<-rep(NA,500)
for (i in 1:500){
TotalN[i]<-sum(OperChar$DLdata$dllength[OperChar$DLdata$simNo==i])
}
desc(TotalN)

TEQR documentation built on May 2, 2019, 2:14 p.m.

Related to desc in TEQR...