calckappa: calckappa

Description Usage Arguments Value Author(s)

View source: R/kappa.R

Description

Calculate kappa for a given region and priors on the number of causal variants in the region, and the prior odds of causal variant sharing

Usage

1
calckappa(nsnps, p, ndis, target.odds)

Arguments

nsnps

number of snps in the region

p

probability any snp is causal (assumes a binomial distribution for the number of causal snps, with expected number = p * nsnps)

ndis

number of diseases

target.odds

prior odds of NO SHARING of causal variants between a single trait and any of the other trait. ie a value < 1 indicates a prior expectation that no sharing is less likely than sharing.

Value

the value of kappa corresponding to supplied target.odds

Author(s)

Chris Wallace


jennasimit/MTFM documentation built on Aug. 15, 2019, 6:14 p.m.