View source: R/cramp_statistic.R
cramp.statistic | R Documentation |
This function computes the test statistic based on random projections and the Hotelling's T^2
test statistic.
cramp.statistic(
x,
y = NULL,
nrep = 1000,
m = 1,
parallel = TRUE,
ncores = NULL
)
x |
data matrix of first group with rows representing samples and columns representing variables. |
y |
data matrix of second group with same number of columns as |
nrep |
number of repetitions for each average of pvalues |
m |
Dimension to randomly project the data (Default value is 1) |
parallel |
Logical variable - whether to parallelize or not (default is |
ncores |
Number of cores to use (If NULL and parallel is TRUE, use 75% of all cores). If |
The average p-value based on nrep
bootstrap random projections.
## Not run:
x = rmvnorm(n = 20, mean = numeric(1000), sigma = diag(runif(1000)))
y = rmvnorm(n = 20, mean = numeric(1000), sigma = diag(runif(1000)))
cramp.statistic(x, y, m = 5)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.