Learn R Programming

multivariance (version 2.4.1)

pearson.pvalue.unif: compute the p-value by Pearson's approximation assuming uniform marginals and euclidean distance

Description

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

Usage

pearson.pvalue.unif(
  x,
  vec = NA,
  type = "total",
  psi = NULL,
  isotropic = TRUE,
  ...
)

Arguments

Examples

Run this code
# NOT RUN {
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))
  )
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab