summary.assumptions_cmpoutput: Summary method for the assumptions of parametric tests used...

View source: R/cmpoutput.R

summary.assumptions_cmpoutputR Documentation

Summary method for the assumptions of parametric tests used in a comparison of an output

Description

Summary method for objects of class assumptions_cmpoutput, which contain the assumptions for the parametric tests used in a comparison of an output.

Usage

## S3 method for class 'assumptions_cmpoutput'
summary(object, ...)

Arguments

object

Object of class assumptions_cmpoutput.

...

Currently ignored.

Value

A list with the following items:

manova

A matrix of p-values for the MANOVA assumptions. All rows, expect the last one, correspond to the Royston test for multivariate normality for each group; the last row corresponds to Box's M test for homogeneity of covariance matrices. Columns correspond to number of principal components required to explain the percentage of user-specified variance.

ttest

A matrix of p-values for the t-test assumptions. All rows, expect the last one, correspond to the Shapiro-Wilk normality test for each group; the last row corresponds to Bartlett's for equality of variances. Columns correspond to the principal components on which the t-test was applied.

Examples


# Create a cmpoutput object from the provided datasets
cmp <- cmpoutput("All", c(0.5, 0.6, 0.7),
                 pphpc_ok$data[["All"]], pphpc_ok$obs_lvls)

# Obtain the summary of the assumptions of the cmpoutput object
summary(assumptions(cmp))


FakenMC/micompr documentation built on Jan. 31, 2024, 5:09 a.m.