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