CI_smd_one: Estimate the mean difference from a sample mean to a...

Description Usage Arguments Value Examples

View source: R/CI_smd_one.R

Description

\loadmathjax

CI_smd_one returns the point estimate and confidence interval for the standardized mean difference between a sample mean and a population/reference mean \mjdeqn d_1 = \fracX - \musMdiff = (X - mu)/s

Usage

1
2
3
4
5
6
7
8
9
CI_smd_one(
  comparison_m,
  comparison_s,
  comparison_n,
  population_m = 0,
  population_s = NULL,
  conf_level = 0.95,
  correct_bias = TRUE
)

Arguments

comparison_m

Mean from the sample

comparison_s

Standard deviation from the sample

comparison_n

Sample size

population_m

Optional value for population mean; defaults to 0

population_s

Optional value for population sd; defaults to NULL. If NULL function returns a CI based on the sample standard deviation and a t-distribution. If a numeric value is passed, returns a CI based on population_s and a normal-distribution

conf_level

The confidence level in decimal form. Defaults to 0.95.

Value

Returns a list with these named elements:

Properties

Examples

1
2
3
4
5
  CI_smd_one(
    comparison_m = 10, 
    comparison_s = 3, 
    comparison_n = 25
  )   

rcalinjageman/esci2 documentation built on Dec. 22, 2021, 1:02 p.m.