pboot.1sample.s {mhtboot} | R Documentation |
Generate p value distributions and estimate of sample correlation matrix using bootstrap.
Description
If the user chooses to keep sout as TRUE, then this function generates bootstrap distribution of p values and returns the mean of the correlation matrices of all the bootstrap samples generated.
Usage
pboot.1sample.s(X, B = 100, test = t.test, nbx = NROW(X), ncpus = 8,
sout = FALSE)
Arguments
X |
data matrix |
B |
Bootstrap size |
test |
test to perform |
nbx |
bootstrap sample size, by default same as the data sample size |
ncpus |
number of cpus to use |
sout |
if correlation matrix is needed or not |
Value
a list with a matrix containing the p value distributions, and another matrix of correlation matrix.
Examples
## Not run:
n = 50;m = 250;m0 = 20;
sigeff = 1;
Sigma <- 0.25*diag(m)
X <- datgen(n,m,m0,sigeff,Sigma = Sigma)
porder <- pboot.1sample.s(X=X,B=100,sout = TRUE,ncpus = 1)
plotpboot(porder)
## End(Not run)
[Package mhtboot version 1.3.3 Index]