reportWithin: Report descriptive statistics with within subjects' standard...

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

View source: R/reportWithin.R

Description

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

Usage

1
2
reportWithin(data = NULL, wid = NULL, within = NULL, between = NULL,
  dv = NULL, conf.interval = 0.95)

Arguments

data

A data frame in the long format

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)

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

Details

As reportSE, the function compute simple descriptive data: number of observations (N), mean, standard deviation (sd), confident intervals (ci) and standard error (se). The main difference is that reportWithin compute the standard error to handle within subjects design. The function normalized the data to remove subjects variability and report intra-subject variability (see Loftus & Masson, 1994).

Within standard errors are computed according the method described by Cousineau (2005) and corrected with the method of Morey (2008).

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)

References

Loftus, G.R., & Masson, M.E.J. (1994). Using confidence intervals in within-subject designs. Psychonomic Bulletin & Review, 1(4), 476<e2><80><93>490.

Cousineau, D. (2005). Confidence intervals in within<e2><80><90>subject designs:A simpler solution to Loftus and Masson<e2><80><99>s method. Tutorials in Quantitative Methods for Psychology, 1, 42-45.

Morey, R. (2008). Confidence intervals from normalized data: A correction to Cousineau (2005). Tutorial in Quantitative Methods for Psychology, 4(2), 61<e2><80><93>64.

See Also

reportSE

Examples

1

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