reportSE: Report descriptive statistics with standard errors

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/reportSE.R

Description

A function cannibalized and slightly simplified from http://www.cookbook-r.com/Manipulating_data/Summarizing_data/

Usage

1
reportSE(data = NULL, dv, groupvars = NULL, conf.interval = 0.95)

Arguments

data

A data frame in the long format

dv

A string indicating the column name of the dependent variable (what is measured, recorded)

conf.interval

The rate to use to compute the confident interval. Defaults to .95

wid

A string indicating the column name of the subjects (or observations)

within

A vector of string of column names of the within variables (repeated within the same observation)

between

A vector of string of column names of the between variables (across observations)

Details

The function compute simple descriptive statistics: number of observations (N), mean, standard deviation (sd), confident intervals (ci) and standard error (se).

Value

Return a data frame of the number of observation (N), mean, standard deviation (sd), corrected standard error (se), and confident interval (ci) by conditions.

Author(s)

Guillaume T. Vallet gtvallet@gmail.com, University of Montreal (Canada)

See Also

reportWithin

Examples

1

Cogitos/predata documentation built on May 6, 2019, 12:21 p.m.