SIM: Simultaneous Inferences for Means

Description Usage Arguments Value Author(s) References Examples

Description

When the T square of Hotelling happened to be significative it is wanted to know which responses led to the rejection of the null hypothesis. To test that they are two approaches using either the union and intersection of the T square of Hotelling or the Bonferroni critical value (Morrison, 2005).

Usage

1
SIM(xbar, mu, a, N, S, alpha = 0.05, intervals = "default", m)

Arguments

xbar

a mean vector of the sample

mu

a mean vector of the population

a

a contrast vector

N

the total number of observations

S

a positive definite matrix with the variance and covariance

alpha

a significance level (0.05 by default)

intervals

the method for making simultaneous confidence intervals

m

the number of linear functions of a'mu

Value

SIM

a data frame that contains the lower and the upper limit of the confidence interlval and the ax value

Author(s)

Jesus Gonzalez <jmgonzalezf@unal.edu.co>, Andres Palacios <anfpalacioscl@unal.edu.co>, Campo Elias Pardo <cepardot@unal.edu.co>

References

Morrison, D. F. (2005), Multivariate statistical methods, Series in Probability and Statistics, 4 edn, McGraw-Hill, New York.

Examples

1
2
3
4
5
6
7
8
9
xbar <- c(55.24, 34.97)
mu <- c(60, 30)
a <- c(1, 0)
N <- 100
S <- matrix(c(210.54, 126.99, 126.99, 119.68), nrow = 2, byrow = TRUE)

SIM(xbar = xbar, a = a, mu = mu, N = N, S = S)
SIM(xbar = xbar, a = a, mu = mu, N = N, S = S, interval = "bonferroni")
SIM(xbar = xbar, a = a, mu = mu, N = N, S = S, m = 4, interval = "bonferroni")

andresfpc/AMUN documentation built on May 12, 2019, 3:36 a.m.