Description Usage Arguments Details Value Author(s) See Also Examples
Calculates means, variances and ns for subgroups of numeric observations and displays the results.
1 2 |
formula |
a formula with the variable to be broken down on the left and the names of one or more variables defining subgroups on the right |
data |
the data frame from which to select the variables |
maxlevels |
the maximum number of levels in any subgroup |
num.desc |
names of the summary functions to apply to the variable on the left side of the formula |
width |
The number of characters to allow for each column in the summary output. |
round.n |
The number of decimal places to round the output. |
brkdn will accept a formula referring to columns in a data frame. It calls describe.numeric for the calculations and displays a table of results.
The results of describe.numeric, or a multi-level list if more than one grouping variable is specified.
Jim Lemon
describe.numeric
1 2 3 4 5 |
Breakdown of Age by Employ
Variable Age for Employ - level Full time
mean var valid.n
Breakdown of Age by Sex
Level mean var valid.n
F 29.9 1.02 19
M 30.61 1.95 12
Variable Age for Employ - level None
mean var valid.n
Breakdown of Age by Sex
Level mean var valid.n
F 29.87 0.99 21
M 30.13 0.46 19
Variable Age for Employ - level Part time
mean var valid.n
Breakdown of Age by Sex
Level mean var valid.n
F 29.37 1.91 6
M 30.05 1.39 23
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.