wiltseBrien: wiltseBrien

Description Usage Arguments Details Value Author(s) References Examples

View source: R/wiltseBrien.R

Description

wiltseBrien performs a Brien's test on a correlation matrix to test whether changes in the underlying variables are coherent.

This function is detailed in Brendan Wiltse's PhD thesis and calculates the grand mean, main effects interactions and equal correlation for the correlation matrix and returns the degrees of freedom, chi-squared value and p-value for each test.

Usage

1
wiltseBrien(my.data, print=T, print.detail=T)

Arguments

my.data

A data frame containing the variables to be tested. The variables should be arranged in columns with appropriate column names

print

(Defaults to TRUE): logical to indicate whether to display the degrees of freedom, chi-squared, and p-values for the grand mean, main effects, interactions, and equal correlations

print.detail

(Defaults to TRUE): logical to indicate whether to display the variables included in the test and the correlation coefficient for the grand mean

Details

wiltseBrien Full details on the Brien's test and the underlying mathematics can be found in Brien et al. 1984

Value

output table of results for use with other functions

Author(s)

Brendan Wiltse

References

Brien CJ, Venables WN, James AT, Mayo O (1984) An analysis of correlation matrices: equal correlations. Biometrika 71: 545-54

Wiltse B (2014) The response of Discostella species to climate change at the Experimental Lakes Area, Canada. PhD Thesis Queen's University

Examples

1
2
3
#Import the example input data for use with Brendan Wiltse's functions
data(wiltseInput)
wiltseBrien(wiltseInput[,2:9])

shiggo/jezioro documentation built on Sept. 7, 2020, 7:34 p.m.