simulation: simulation Data.

Description Usage Arguments Format Examples

Description

A simulated data using the same framework from simulation series I in the CIV paper. It contains 500 subjects with one phenotype (X) of interest, one pleiotropic phenotype (Z) and one outcome (Y) simulated for each subject. 9 SNPs were generated and they were associated with both X and Z. The true causal effect of X on Y is 1. This data file is simulated to serve as an example to estimate the causal effect of X on Y while accounting for potential pleiotropic effect from Z. Users can compare the performance of different MR methods on this simulation dataset since the true causal effect is known.

Usage

1

Arguments

simulation$Y:

the simulated outcome Y. Continuous variable.

simulation$X:

The simulated phenotype of interest X. Continuous variable.

simulation$Z:

The potential pleiotropic phenotype Z. Continuous variable.

simulation$G:

The simulated genotypes. The dosage of 9 independent SNP variants were simulated with a minor allele frequency of 0.3 for all 500 subjects.

Format

An object of class "data.frame".

Examples

1
2
3
4
5
data(simulation)
X <- simulation$X
Z <- simulation$Z
geno <- simulation$G
outcome <- simulation$Y

LaiJiang/CIVMR documentation built on July 16, 2020, 12:45 a.m.