cordata: Correlation and Cohen's d effect sizes.

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

View source: R/cordata.R

Description

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

Usage

1
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 mus 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

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

regtomean documentation built on Jan. 29, 2021, 5:14 p.m.

Related to cordata in regtomean...