## Selected summary statistics 'Count,sum, percentage of shares' for
## disp and mpg variables by vs, am and gear
ExpCustomStat(mtcars, Cvar=c("vs","am","gear"), Nvar = c("disp","mpg"),
stat = c("Count","sum","PS"), gpby = TRUE, filt = NULL)
ExpCustomStat(mtcars, Cvar=c("gear"), Nvar = c("disp","mpg"),
stat = c("Count","sum","var"), gpby = TRUE, filt = "am==1")
ExpCustomStat(mtcars, Cvar = c("gear"), Nvar = c("disp","mpg"),
stat = c("Count","sum","mean","median"), gpby = TRUE, filt = "am==1")
## Selected summary statistics 'Count and fivenum stat for disp and mpg
## variables by gear
ExpCustomStat(mtcars, Cvar = c("gear"), Nvar = c("disp", "mpg"),
stat = c("Count",'min','p0.25','median','p0.75','max'), gpby = TRUE)
Run the code above in your browser using DataLab