Skip to contents

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.

Usage

summarydata(data, vars, distr = FALSE)

Arguments

data

The data as a data frame.

vars

a string naming the variables from data that contains the continuous values used for the report

distr

If TRUE, additional distribution diagnostics (Shapiro-Wilk test, skewness, and kurtosis) will be computed and explained.

Value

A results object containing:

results$todoa html
results$texta html
results$text1a html

Examples

# \donttest{
# 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.
# }