descripYG: Descriptive Analysis With Optional Grouping
Description
Performs a descriptive analysis on a numeric dependent variable, either globally
or grouped by an independent variable. Displays summary statistics such as mean,
standard deviation, skewness, and kurtosis, and generates associated plots
(histogram, boxplot, or density ridges).
Usage
descripYG(dataset, vd, vi = NULL)
Value
A data.frame with descriptive statistics. Also prints plots to the graphics device.
Arguments
dataset
A data.frame or tibble containing the variables.
vd
A numeric variable to analyze (dependent variable).
vi
An optional grouping variable (independent variable, categorical or numeric).