groupsum: Group Summary Statistics

Description Usage Arguments Value Examples

View source: R/stat_functions.R

Description

This function summarizes your data by a given factor(s). It will return a dataframe that includes the mean and standard error of the outcome measure of interest. The summary statistics will be formatted for plotting using ggplot2.

Usage

1
groupsum(data, y, g1, g2 = NULL, g3 = NULL, g4 = NULL)

Arguments

data

A dataframe that contains the variables to be summarized.

y

A column from the dataframe specified that will be summarized as an outcome measure.

g1

Grouping variable 1

g2

Grouping variable 2

Value

A dataframe with the mean and standard error by grouping factor(s).

Examples

1
2
dime <- dime 
groupsum(data = dime, y = acc, g1 = modul)

lfrank14/lurr documentation built on May 21, 2019, 12:20 p.m.