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 = 5, ...)

Arguments

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

Details

The FRBhot print function displays basically just the test statistic and bootstrap p-value.

Author(s)

Gert Willems and Ella Roelant

See Also

summary.FRBhot, 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.6 Index]