cordata: Correlation and Cohen's d effect sizes.

View source: R/cordata.R

cordataR Documentation

Correlation and Cohen's d effect sizes.

Description

This function calculates the correlation for the data and Cohen's d effect sizes, both based on pooled and on treatment standard deviations.

Usage

cordata(Before,After,data)

Arguments

Before

a numeric vector giving the data values for the first (before) measure.

After

a numeric vector giving the data values for the second (after) measure.

data

an optional data frame containing the variables in the formula. By default the variables are taken from environment (formula).

Details

This function computes the correlation between both measures as also both effect sizes based on Cohen's d statistic.

The inputs must be numeric.

Value

Return a table containing the correlation, effect size pooled and effect size based on treatment.

Author(s)

Daniela R. Recchia, Thomas Ostermann.

References

Cohen, J. (1988). Statistical power analysis for the behavioral sciences (2nd ed.). New York:Academic Press.

See Also

cohen.d,cor

Examples

cordata("Before","After",data=language_test)

regtomean documentation built on Oct. 26, 2022, 5:08 p.m.

Related to cordata in regtomean...