A utility function.
.ModelPvalue( dataSimulation, dataReference, clusterCut, permutations, refClusterVar, corMethod, simulatedClusterVar )
| dataSimulation | Simulation data to be compared.  | 
    
|---|---|
| dataReference | Reference data with which to compare.  | 
    
| clusterCut | The original cluster assignments.  | 
    
| permutations | The number of permutations.  | 
    
| refClusterVar | SD of the clusters.  | 
    
| corMethod | Correlation method to be used.  | 
    
| simulatedClusterVar | Variance of simulated clusters  | 
    
An array of dimension n.models by nClusters by permutations.