testPCA {detectR}R Documentation

PCA-based test for the equality of connectivity

Description

This function performs PCA-test for testing the equality of connectivity in two fMRI signals

Usage

testPCA(subY1, subY2, L = 2, nlag, diagTF = TRUE)

Arguments

subY1

a sample of size length*dim

subY2

a sample of size length*dim

L

the number of factors

nlag

is the number of ACF lag to be used in the test, default is 2, Default is nlag = floor(N^(1/3))

diagTF

include diagonal term of covariance matrix or not

Value

tstat Test statistic

pval Returns the p-value

df The degree of freedom in PCA-best test

L The number of factors used in the test

diagTF If true, the diagonal entry of covariance matrix is used in testing

Examples

test3 = testPCA(testsim$X, testsim$Y, L=2)

[Package detectR version 0.3.0 Index]