|
a |
|
b/man/shaPRS_rho.Rd |
|
|
1 |
% Generated by roxygen2: do not edit by hand |
|
|
2 |
% Please edit documentation in R/shaPRS.R |
|
|
3 |
\name{shaPRS_rho} |
|
|
4 |
\alias{shaPRS_rho} |
|
|
5 |
\title{Calculate rho to be used in shaPRS_adjust()} |
|
|
6 |
\usage{ |
|
|
7 |
shaPRS_rho(nkl0, nk1, nk0, nl1, nl0) |
|
|
8 |
} |
|
|
9 |
\arguments{ |
|
|
10 |
\item{nkl0}{number of controls overlapping between studies} |
|
|
11 |
|
|
|
12 |
\item{nk1}{number of cases in study k} |
|
|
13 |
|
|
|
14 |
\item{nk0}{number of controls in study k} |
|
|
15 |
|
|
|
16 |
\item{nl1}{number of cases in study l} |
|
|
17 |
|
|
|
18 |
\item{nl0}{number of controls in study l} |
|
|
19 |
} |
|
|
20 |
\value{ |
|
|
21 |
returns real value of the approximate correlation |
|
|
22 |
} |
|
|
23 |
\description{ |
|
|
24 |
Convenience function to estimate the correlation between two studies with overlapping controls |
|
|
25 |
for more details see: |
|
|
26 |
Lin et al. 'Meta-Analysis of Genome-wide Association Studies with Overlapping Subjects' (2009 |
|
|
27 |
ncbi.nlm.nih.gov/pmc/articles/PMC2790578 |
|
|
28 |
} |
|
|
29 |
\examples{ |
|
|
30 |
rho = shaPRS_rho(nkl0 = 9492,nk1 = 3810, nk0= 9492, nl1= 3765,nl0= 9492) |
|
|
31 |
|
|
|
32 |
} |