cordata | R Documentation |
This function calculates the correlation for the data and Cohen's d effect sizes, both based on pooled and on treatment standard deviations. It can optionally display the results in an HTML widget.
cordata(Before, After, within = TRUE, data = NULL)
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. |
within |
A logical indicating whether the effect sizes should be computed based on paired samples ( |
data |
an optional data frame containing the variables in the formula. By |
This function computes the correlation between two measures and calculates Cohen's d effect sizes using both pooled and treatment standard deviations.
- If within = TRUE
, the effect sizes are computed assuming paired samples.
- If within = FALSE
, the effect sizes are computed assuming independent samples.
The results are returned as a data frame and also displayed in an HTML widget in the RStudio Viewer or default web browser.
Return a table containing the correlation, effect size pooled and effect size based on treatment.
Daniela Recchia, Thomas Ostermann.
Cohen, J. (1988). Statistical power analysis for the behavioral sciences (2nd ed.). New York:Academic Press.
cohen.d,cor
cordata("Before","After",data=language_test)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.