Learn R Programming

wgsea (version 1.8)

varplot: Plot theoretical and estimated variances of Wstar

Description

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

Usage

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

See Also

wilcoxon

Examples

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

Run the code above in your browser using DataLab