a numeric vector of observed p values from a
list of SNPs or a matrix, with each column representing a
vector under a different permutation of the dataset.
snps.in
a numeric vector indicating which members
of p form the test group (their complement form the
control group).
weights
optional propensity score weights. These
are binned according to binsize, and a weight calculated
which is inversely proportional to the probability of
sampling a member of the test group in that bin.
binsize
see weights, above.
Value
A numeric value or, if p is a matrix, a numeric vector.
References
Propensity weights are described
Rosenbaum, P. R. & Rubin, D. B. The central role of the
propensity score in observational studies for causal
effects. Biometrika, 1983, 70, 41-55
Rosenbaum, P. R. Model-based direct adjustment. Journal
of the American Statistical Association, 1987, 82,
387-394
x <- exp(-rexp(1000)) # uniformy <- exp(-rexp(1000,0.8)) # skewed towards 0wilcoxon(p=c(x,y),snps.in=1:1000)
## note, should be equal towilcox.test(x,y)