testPCA | R Documentation |
This function performs PCA-test for testing the equality of connectivity in two fMRI signals
testPCA(subY1, subY2, L = 2, nlag, diagTF = TRUE)
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 |
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
test3 = testPCA(testsim$X, testsim$Y, L=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.