compare_groups: Compare groups on a set of variables.

Description Usage Arguments Value Examples

View source: R/compare_groups.R

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

1
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

1
compare_groups(SND, "SemNear_Cond")

jgeller112/gazer documentation built on Jan. 13, 2020, 1:04 p.m.