View source: R/cohen_d_from_cohen_textbook.R
| cohen_d_from_cohen_textbook | R Documentation | 
Calculates Cohen's d as described in Jacob Cohen's textbook (1988), Statistical Power Analysis for the Behavioral Sciences, 2nd Edition Cohen, J. (1988) \Sexpr[results=rd]{tools:::Rd_expr_doi("10.4324/9780203771587")}
cohen_d_from_cohen_textbook(
  sample_1 = NULL,
  sample_2 = NULL,
  data = NULL,
  iv_name = NULL,
  dv_name = NULL
)
| sample_1 | a vector of values in the first of two samples | 
| sample_2 | a vector of values in the second of two samples | 
| data | a data object (a data frame or a data.table) | 
| iv_name | name of the independent variable | 
| dv_name | name of the dependent variable | 
the output will be a Cohen's d value (a numeric vector of length one)
cohen_d_from_cohen_textbook(1:10, 3:12)
cohen_d_from_cohen_textbook(
  data = mtcars, iv_name = "vs", dv_name = "mpg"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.