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,
decimal_places = 1,
outliers = FALSE,
report_sentences = FALSE
)Arguments
- data
The data as a data frame.
- vars
a string naming the variables from
datathat 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.
- decimal_places
Number of decimal places to display for statistical measures.
- outliers
If TRUE, detect and report potential outliers using IQR method. Helpful for quality control and identifying data entry errors.
- report_sentences
If TRUE, generate copy-ready clinical report sentences for direct use in medical documentation.