pboot.1sample.s: Generate p value distributions and estimate of sample...

Description Usage Arguments Value Examples

View source: R/bootfunctions.R

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

1
2
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

1
2
3
4
5
6
7
8
9
## 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) 

mhtboot documentation built on May 2, 2019, 8:15 a.m.