# anocvaStats

##### Calculates ANOVA statistics for original data and bootstrap replicates.

Calculates ANOVA statistics for original data and bootstrap replicates.

- Keywords
- internal

##### Usage

`anocvaStats(idx, dataDist, id, k, N, r, clusteringFunction)`

##### Arguments

- idx
Identifies the bootstrap replicate. 1 means that original data should be used. 2 or more leads to resampling.

- dataDist
A matrix with n subjects. Each subject has the size of NxN and represents the distances between the elements of the sample.

- id
A list in range 1,2,...,n, where id[i] identifies the population id for i-th subject.

- k
The number of populations.

- N
Subjects size.

- r
Optimal number of clusters.

- clusteringFunction
determines the clustering function that you want to use. The default function is spectralClustering.

##### Value

ANOCVA deltaS and deltaSq statistics

##### References

Fujita A, Takahashi DY, Patriota AG, Sato JR (2014a) A non-parametric statistical test to compare clusters with applications in functional magnetic resonance imaging data. Statistics in Medicine 33: 4949<U+2013>4962

Caetano de Jesus DA. (2017) Evaluation of ANOCVA test for cluster comparison through simulations. Master Dissertation. Institute of Mathematics and Statistics, University of S<U+00E3>o Paulo.

*Documentation reproduced from package anocva, version 0.1.1, License: GPL (>= 3)*