testPCA: PCA-based test for the equality of connectivity

Description Usage Arguments Value Examples

View source: R/testPCA.R

Description

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

Usage

1
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 covarianc matrix is used in testing

Examples

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

detectR documentation built on Feb. 8, 2021, 5:06 p.m.

Related to testPCA in detectR...