Learn R Programming

Analitica (version 2.2.0)

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).

Examples

Run this code
data(d_e, package = "Analitica")
descripYG(d_e, vd = Sueldo_actual)
descripYG(d_e, vd = Sueldo_actual, vi = labor)
descripYG(d_e,Sueldo_actual,labor)


Run the code above in your browser using DataLab