t_test.conf.summary: Confidence Functions for Means via Gaussian Models from...

Description Usage Arguments Value Examples

View source: R/ttest.R

Description

Confidence functions for a single mean, the difference of means from matched observations, or the difference of means from independent samples.

Usage

1
t_test.conf.summary(mean, sd, n, plot = TRUE, conf.level = 0.95)

Arguments

mean

a (non-empty) numeric vector of data values.

sd

a (non-empty) numeric vector of data values.

n

a (non-empty) numeric vector of data values.

plot

a logical indicating whether you want the plots to be generated.

conf.level

the confidence level for the confidence interval indicated on the confidence curve

Value

A list containing the confidence functions pconf, dconf, cconf, and qconf for the mean or difference of means, as well as the P-curve and S-curve.

Examples

1
2
3
4
5
6
7
# One mean:

t_test.conf.summary(mean = 5, sd = 1, n = 20)

# Two means:

t_test.conf.summary(mean = c(3, 5), sd = c(1, 0.5), n = c(10, 12))

ddarmon/clp documentation built on Jan. 25, 2021, 6:22 p.m.