R: Produce combind table for descriptive statistics
mytable2
R Documentation
Produce combind table for descriptive statistics
Description
Produce table for descriptive statistics by two grouping variables for several variables easily.
Depending on the nature of these variables, different descriptive statistical
methods were used(t-test, ANOVA,Kruskal-Wallis, chisq, Fisher,...)
An object of class "formula". Left side of ~ must contain two grouping variables in an
additive way(e.g. sex+group~), and the right side of ~ must have
variables in an additive way.
data
A data.frame contains data for analysis
max.ylev
An integer indicating the maximum number of levels of grouping
variable ('y'). If a colummn have unique values less than max.ylev
it is treated as a categorical variable. Default value is 5.
digits
An integer indicating the number of decimal places (round) or
significant digits (signif) to be used. Default value is 1.
method
An integer indicating methods for continuous variables.
Possible values in methods are
1
forces analysis as normal-distributed
2
forces analysis as continuous non-normal
3
performs a Shapiro-Wilks test to decide between
normal or non-normal
Default value is 1.
show.all
A logical value indicating whether or not all statistical
values have to be shown in table. Default value is FALSE.