univ.desc: Simplified Descriptive Statistics

View source: R/univ.desc.R

univ.descR Documentation

Simplified Descriptive Statistics

Description

This function returns univariate/descriptive statistics (univ.desc) on a variable within a given data frame, and uses simplified calls within the function to parse the descriptives by another variable.

Usage

univ.desc(df, var1, by1)

Arguments

df

data frame to read in.

var1

the dependent/outcome variable, Y. The variable of interest .

by1

the main independent/predictor variable, X_1. A grouping variable by which the descriptive statistics for var1 should be parsed.

Value

This function returns the descriptive statistics for var1 in data frame df. Can be split to return descriptives for var1 in data frame df, broken out by var2.

Examples

data <- mtcars

univ.desc(data,mpg)

vannstats documentation built on April 4, 2025, 1:37 a.m.