OneSampleHT2 {MVTests}R Documentation

One Sample Hotelling T^2 Test

Description

OneSampleHT2 computes one sample Hotelling T^2 statistics and gives confidence intervals

Usage

OneSampleHT2(data, mu0, alpha = 0.05)

Arguments

data

a data frame.

mu0

mean vector that is used to test whether population mean parameter is equal to it.

alpha

Significance Level that will be used for confidence intervals. default alpha=0.05.

Details

This function computes one sample Hotelling T^2 statistics that is used to test whether population mean vector is equal to a vector given by a user. When H0 is rejected, this function computes confidence intervals for all variables.

Value

a list with 7 elements:

HT2

The value of Hotelling T^2 Test Statistic

F

The value of F Statistic

df

The F statistic's degree of freedom

p.value

p value

CI

The lower and upper limits of confidence intervals obtained for all variables

alpha

The alpha value using in confidence intervals

Descriptive

Descriptive Statistics

Author(s)

Hasan BULUT <hasan.bulut@omu.edu.tr>

References

Rencher, A. C. (2003). Methods of multivariate analysis (Vol. 492). John Wiley & Sons.

Tatlidil, H. (1996). Uygulamali Cok Degiskenli Istatistiksel Yontemler. Cem Web.

Examples

data(iris)

mean0<-c(6,3,1,0.25)
result <- OneSampleHT2(data=iris[1:50,-5],mu0=mean0,alpha=0.05)
summary(result)

[Package MVTests version 2.2.2 Index]