eval_stat {TestCor}R Documentation

Evaluates the test statistics for tests on correlation matrix entries.

Description

Evaluates the test statistics for tests on correlation matrix entries.

Usage

eval_stat(data, type = "empirical")

Arguments

data

matrix of observations

type
'empirical'

nabs(corr)\sqrt{n}*abs(corr)

'fisher'

n31/2log((1+corr)/(1corr))\sqrt{n-3}*1/2*\log( (1+corr)/(1-corr) )

'student'

n2abs(corr)/(1corr2)\sqrt{n-2}*abs(corr)/\sqrt(1-corr^2)

'2nd.order'

nmean(Y)/sd(Y)\sqrt{n}*mean(Y)/sd(Y) with Y=(Ximean(Xi))(Xjmean(Xj))Y=(X_i-mean(X_i))(X_j-mean(X_j))

Value

Returns the test statistics for correlation testing.

Examples

n <- 100
p <- 10
corr_theo <- diag(1,p)
data <- MASS::mvrnorm(n,rep(0,p),corr_theo)
stat <- eval_stat(data,'fisher')

[Package TestCor version 0.0.2.2 Index]