pearson.pvalue.unif: compute the p-value by Pearson's approximation assuming...

Description Usage Examples

View source: R/multivariance-functions.R

Description

compute the p-value by Pearson's approximation assuming uniform marginals and euclidean distance

Usage

1
2
3
4
5
6
7
8
pearson.pvalue.unif(
  x,
  vec = NA,
  type = "total",
  psi = NULL,
  isotropic = TRUE,
  ...
)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
multivariance:::pearson.pvalue.unif(matrix(runif(300),ncol = 3))

## Not run: 
library(microbenchmark)
x = matrix(runif(300*3),ncol = 3)
microbenchmark(
  multivariance.test(x,p.value.type = "pearson_approx")$p.value,
  multivariance:::pearson.pvalue.unif(emp.transf(x))
  )

## End(Not run)

multivariance documentation built on Oct. 6, 2021, 5:08 p.m.