ChenQin.sim: Chen Qin Simulator

Description Usage Arguments Value Author(s) References See Also Examples

Description

Performs the test from Chen and Qin (2010) on multiple data sets generated by build2popData.

Usage

1

Arguments

DATA

an object returned by build2popData.

Value

A data frame with columns

ChQvalues

values of the test statistic.

pvalues

the p values.

Author(s)

Karl Gregory kgregory@mail.uni-mannheim.de, http://www.stat.tamu.edu/~kbgregory.

References

Chen, X. S. and Qin, Y.L. (2010). A two sample test for high dimensional data with applications to gene-set testing. The Annals of Statistics. 38(2):808–835

See Also

ChenQin.test

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
	
## Not run: 

DATA <-build2popData(	
	n = 15,
	m = 20,
	p = 500,
	muX = rep(0,500),
	muY = rep(0,500),
	commoncov = FALSE,
	VarScaleY = 1,
	dep = "ARMA",
	ARMAparms = list(coefs=list(ma=c(.2,.3) , ar=c(.4,-.1))),
	LRparm = .75,
	S = 25,
	innov = function(n,...) rnorm(n,0,1),
	heteroscedastic=TRUE,
	het.diag = diag(.1 + rexp(500,1/2))
	)
	
ChenQin.sim(DATA)


## End(Not run)

Example output

Loading required package: fastclime
Loading required package: lattice
Loading required package: igraph

Attaching package: 'igraph'

The following objects are masked from 'package:stats':

    decompose, spectrum

The following object is masked from 'package:base':

    union

Loading required package: MASS
Loading required package: Matrix
       ChQvalues    pvalues
 [1,] -0.7510214 0.45263975
 [2,] -1.0011738 0.31674279
 [3,] -0.5389324 0.58993353
 [4,] -1.4335179 0.15170988
 [5,]  0.4285428 0.66825601
 [6,] -0.1949760 0.84541174
 [7,] -0.8734931 0.38239439
 [8,]  0.3201634 0.74884445
 [9,] -0.7477685 0.45459979
[10,]  2.4427651 0.01457522
[11,]  1.4555312 0.14552226
[12,] -1.1767563 0.23929279
[13,] -0.4009142 0.68848329
[14,]  0.1160977 0.90757511
[15,] -1.4831481 0.13803506
[16,] -0.7885943 0.43034918
[17,] -0.5561578 0.57810300
[18,]  0.2895431 0.77216582
[19,] -1.7915057 0.07321218
[20,] -1.5521878 0.12061729
[21,]  1.2139305 0.22477427
[22,] -0.6073087 0.54364606
[23,]  0.4553647 0.64884688
[24,] -0.5474089 0.58409784
[25,]  0.2387688 0.81128490

highD2pop documentation built on May 2, 2019, 5:11 a.m.