cohen_d_for_one_sample: Calculate Cohen's d to accompany a one-sample t-test

View source: R/cohen_d_for_one_sample.R

cohen_d_for_one_sampleR Documentation

Calculate Cohen's d to accompany a one-sample t-test

Description

To run this function, the following package(s) must be installed: Package 'psych' v2.1.9 (or possibly a higher version) by William Revelle (2021), https://cran.r-project.org/package=psych

Usage

cohen_d_for_one_sample(x = NULL, mu = NULL)

Arguments

x

a numeric vector containing values whose mean will be calculated

mu

the true mean

Examples

cohen_d_for_one_sample(x = 1:10, mu = 3)
cohen_d_for_one_sample(x = c(1:10, NA, NA), mu = 3)

kim documentation built on Oct. 9, 2023, 5:08 p.m.