Learn R Programming

RNOmni (version 0.4.0)

BootCorr: Bootstrap Correlation Estimate.

Description

Estimates the correlation between correlated p-values on the Z-score scale. Avoids the assumption that the correlation between p-values is constant across loci. Instead, bootstrap is used to calculate locus-specific estimates of the correlation between p-values.

Usage

BootCorr(y, G, X, S, k = 3/8, B = 100, parallel)

Arguments

y

Numeric phenotype vector.

G

Obs by snp genotype matrix.

X

Model matrix of covariates.

S

Model matrix of structure adjustments.

k

Offset applied during rank-normalization. See rankNormal.

B

Bootstrap samples for correlation estimation.

parallel

Run bootstraps in parallel? Must register parallel backend first.

Value

Numeric matrix of correlation estimates, one per locus (column) in G.