View source: R/summarydata.h.R
summarydata | R Documentation |
This module generates descriptive statistics for continuous variables. It provides both a textual summary and a visually appealing summary table. Optionally, you can enable distribution diagnostics to examine normality, skewness, and kurtosis.
summarydata(data, vars, distr = FALSE)
data |
The data as a data frame. |
vars |
a string naming the variables from |
distr |
If TRUE, additional distribution diagnostics (Shapiro-Wilk test, skewness, and kurtosis) will be computed and explained. |
A results object containing:
results$todo | a html | ||||
results$text | a html | ||||
results$text1 | a html | ||||
# Example:
# 1. Load your data frame.
# 2. Select one or more continuous variables.
# 3. (Optional) Enable Distribution Diagnostics to view additional tests.
# 4. Run the summarydata module to see descriptive statistics and distribution characteristics.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.