conf.ellipse: Confidence regions for bivariate data

Description Usage Arguments Value List of output Examples

View source: R/conf.ellipse.R

Description

Confidence regions for bivariate data

Usage

1
conf.ellipse(data, alpha, mu_0)

Arguments

data

a data.frame containing two variables

alpha

a scaled quantity between 0 and 1; 100(1-alpha) is the confidence level

mu_0

the vector of means from the null hypothesis

Value

a plot showing the ellipse that is the confidence region based on alpha

a named list with several outputs, explained further in the output section

List of output

The list returned at the end of the function has several components to its output:

  1. The result of the confidence test (result)

  2. The size of the quadratic form (quadratic.form)

  3. The scaled quantile (scaled.quantile)

  4. The eigenvectors and eigenvalues of S (eigenvalues and eigenvectors)

  5. The major and minor half-widths (major.halfwidth and minor.halfwidth)

  6. The lengths ratio, i.e. ratio of the major axis to the minor axis (lengths.ratio)

Examples

1
2
3
4
5
## Not run: 
df <- diamonds[, c(1,5)]
dBar <- colMeans(data)
conf.ellipse(data = df, alpha = 0.05, mu_0 = dBar)
## End(Not run)

leahpom/MATH5793POMERANTZ documentation built on May 10, 2021, 9:52 a.m.