var_: Interval Estimation of Population Variance and Hypothesis...

View source: R/var_.R

var_R Documentation

Interval Estimation of Population Variance and Hypothesis Testing

Description

Compute an interval estimate of the population variance of x and a hypothesis test using the given population variance.

Usage

var_(
  x,
  alternative = c("two.sided", "less", "greater"),
  pv = 0,
  conf.level = 0.95
)

Arguments

x

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

alternative

a character string specifying the alternative hypothesis, must be one of "two.sided" (default), "greater" or "less". You can specify just the initial letter.

pv

a number indicating the true value of the population variance.

conf.level

confidence level of the interval.

Details

The sample variance of the estimate is the unbiased variance computed with stats::var. It also calculates the population variance assuming the given value is the population.


indenkun/infun documentation built on April 17, 2025, 2:52 p.m.