varplot: Plot theoretical and estimated variances of Wstar

Description Usage Arguments Value Author(s) See Also Examples

View source: R/plotting.R

Description

Given a vector of Wilcoxon statistics generated through permutation, plot theoretical and esitimated variance by cumulative number of permutations

Usage

1
  varplot(Wstar, n1, n2)

Arguments

Wstar

the vector of Wilcoxon values generated by permutation

n1

number of items (SNPs) in regions to be tested.

n2

number of items (SNPs) in regions the control regions.

Value

None

Author(s)

Chris Wallace <chris.wallace at cimr.cam.ac.uk>

See Also

wilcoxon

Examples

1
2
3
x<- matrix(exp(-rexp(200000)),nrow=2000)
Wstar<-wilcoxon(p=x,snps.in=1:1000)
varplot(Wstar=Wstar,1000,1000)

wgsea documentation built on May 29, 2017, 7:02 p.m.