compare_groups: Compare groups on a set of variables.

View source: R/compare_groups.R

compare_groupsR Documentation

Compare groups on a set of variables.

Description

For each numeric variable in a data frame, computes number of observations, mean, and standard deviation, for each group, and t- and p-values for the t-test comparing the groups.

Usage

compare_groups(dat, Group)

Arguments

dat

data frame

Group

string name of grouping variable

Value

Returns a data frame with rows for each numeric variable in the input data frame (plus N, for number of observations) and columns for mean, SD, t-value, and p-value.

Examples

compare_groups(SND, "SemNear_Cond")

dmirman/gazer documentation built on Aug. 1, 2022, 2:02 p.m.