print.FRBhot {FRB}R Documentation

Print Method for Objects of Class 'FRBhot'

Description

This is the print method for objects of class FRBhot representing a robust Hotelling test.

Usage

## S3 method for class 'FRBhot':
print(x, digits = 3, ...)

Arguments

x an R object of class FRBhot, typically created by FRBhotellingS or FRBhotellingMM
digits number of digits for printing (defaulting to 3)
... potentially more arguments

Details

The FRBhot print function displays practically all components in the FRBhot object as returned by FRBhotellingS or FRBhotellingMM. In particular, apart from the test statistic and bootstrap p-value, the output shows simultaneous confidence intervals for the (difference in) mean(s). The corresponding robust estimates of the (difference in) mean(s) are also given, as well as the robust estimate of (common) covariance.

Author(s)

Gert Willems and Ella Roelant

See Also

FRBhotellingS, FRBhotellingMM

Examples


data(delivery)
delivery.x <- delivery[,1:2]
FRBhotellingMM(delivery.x)  # -> print.FRBhot() method

## Two sample robust Hotelling test
data(hemophilia)
grp <-as.factor(hemophilia[,3])
x <- hemophilia[which(grp==levels(grp)[1]),1:2]
y <- hemophilia[which(grp==levels(grp)[2]),1:2]
#using the pooled covariance matrix to estimate the common covariance matrix
FRBhotellingS(x,y,method="pool")
#using the estimator of He and Fung to estimate the common covariance matrix
FRBhotellingS(x,y,method="HeFung")


[Package FRB version 1.4 Index]