cordata {regtomean} | R 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 |
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
Examples
cordata("Before","After",data=language_test)