meandiff_CI | R Documentation |
Function to compute CI around the raw mean difference
meandiff_CI(m1, m2, sd1, sd2, n1, n2, conf.level, var.equal, alternative)
m1 |
the average score of the first group |
m2 |
the average score of the second group |
sd1 |
the standard deviation the first group |
sd2 |
the standard deviation the second group |
n1 |
the first sample size |
n2 |
the second sample size |
conf.level |
confidence level of the interval |
var.equal |
a logical variable indicating whether to assume equality of population variances. If TRUE the pooled variance is used to estimate the standard error. Otherwise, the standard error is estimated based on unpooled variance. |
alternative |
a character string specifying the alternative hypothesis, must be one of "two.sided" (default), "greater" or "less". |
Returns raw mean difference, (1-alpha)% confidence interval around mean difference, standard error
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.