| DESCRIPTIVES | R Documentation |
Produces descriptive statistcs for numeric variables, possibly by a grouping variable.
DESCRIPTIVES(data, groups, variables, CI_level = 95, verbose)
data |
A dataframe or numeric matrix where the rows are cases & the columns are the variables. |
groups |
(optional) The name of the groups variable in the dataframe, if there is one, |
variables |
(optional) The names of the continuous variables in the dataframe for the analyses, e.g., variables = c('varA', 'varB', 'varC'). |
CI_level |
(optional) The confidence interval for the output, in whole numbers, e.g., CI_level = 95. The default is 95. |
verbose |
Should detailed results be displayed in the console?
|
If "groups" is not specified, the analyses will be run on all of the variables in "data". If "variables" is specified, the analyses will be run on the "variables" in "data". If "groups" is specified, the analyses will be run for every value of "groups".
The returned output is a list with the descriptive statistics.
Brian P. O'Connor
# without a grouping variable
DESCRIPTIVES(data = data_DFA$Field_2012, variables = c('Actions','Thoughts'))
# with a grouping variable
DESCRIPTIVES(data = data_DFA$Field_2012,
groups = 'Group',
variables = c('Actions','Thoughts'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.