Learn R Programming

sigr (version 1.1.5)

TIntervalS: Student-T tolerance-style interval around an estimate of a mean from summary.

Description

Student-T tolerance-style interval around an estimate of a mean from summary.

Usage

TIntervalS(
  sample_size,
  sample_mean,
  sample_var,
  ...,
  nNA = 0,
  conf.level = 0.95
)

Value

wrapped stat

Arguments

sample_size

numeric scalar integer, size of sample.

sample_mean

numeric scalar, mean of sample.

sample_var

numeric scalar, variance of sample (Bessel-corrected).

...

extra arguments passed to TInterval.

nNA

number of NAs seen.

conf.level

confidence level to draw interval

See Also

TInterval, TIntervalS, TInterval.numeric, TInterval.data.frame

Examples

Run this code

set.seed(2018)
d <- rnorm(100) + 3.2
TIntervalS(length(d), mean(d), stats::var(d))

Run the code above in your browser using DataLab