qtmean: Inverse cumulative distribution function for t distribution

View source: R/qtmean.R

qtmeanR Documentation

Inverse cumulative distribution function for t distribution

Description

Computes the value of sample mean corresponding to the input quantile p of the t distribution for n-1 degrees of freedom

Usage

qtmean(p, mean, s2, n)

Arguments

p

value of cdf (named in accordance with R standards)

mean

the assumed normal mean

s2

the observed sample variance (pass this as an extra argument to cdfinv())

n

the sample size (pass this as an extra argument to cdfinv())

Details

Do not call qtmean() directly. Pass DISTR="tmean" to cdfinv() when computing intervals for the normal mean when the variance is unknown. The parameter name to be passed to cdfinv() is mean. The additional arguments s2 (sample variance) and n (sample size) are to be passed to cdfinv().

Value

The value of sample mean corresponding to the input quantile p of the t distribution for n-1 degrees of freedom

Author(s)

Peter E. Freeman, pfreeman@cmu.edu


cdfinv documentation built on April 16, 2025, 1:09 a.m.