ExampleDataCor {CPBayes} | R Documentation |

## An example data for correlated summary statistics.

### Description

ExampleDataCor is a list consisting of three components: BetaHat, SE, cor. ExampleDataCor$BetaHat is a numeric vector that contains the main genetic effect (beta/log(odds ratio)) estimates for a SNP across 10 overlapping case-control studies for 10 different diseases. Each of the 10 studies has a distinct set of 7000 cases and a common set of 10000 controls shared across all the studies. In each case-control study, we fit a logistic regression of the case-control status on the genotype coded as the minor allele count for all the individuals in the sample. One can also include various covariates, such as, age, gender, principal components (PCs) of ancestries in the logistic regression. From each logistic regression for a disease, we obtain the estimate of the main genetic association parameter (beta/log(odds ratio)) along with the corresponding standard error. Since the studies have overlapping subjects, the beta-hat across traits are correlated. ExampleDataCor$SE contains the standard error vector corresponding to the correlated beta-hat vector. ExampleDataCor$cor is a numeric square matrix providing the correlation matrix of the correlated beta-hat vector.

### Usage

```
data(ExampleDataCor)
```

### Format

A list consisting of two numeric vectors (each of length 10) and a numeric square matrix of dimension 10 by 10:

- BetaHat
beta hat vector of length 10.

- SE
standard error vector corresponding to the beta-hat vector.

- cor
correlation matrix of the beta-hat vector.

### Examples

```
data(ExampleDataCor)
BetaHat <- ExampleDataCor$BetaHat
BetaHat
SE <- ExampleDataCor$SE
SE
cor <- ExampleDataCor$cor
cor
cpbayes_cor(BetaHat, SE, cor)
```

*CPBayes*version 1.1.0 Index]