summary_set: Wrapper for generating a summary set

View source: R/summary_set.r

summary_setR Documentation

Wrapper for generating a summary set

Description

Allows arbitrary sample overlap

Usage

summary_set(
  beta_gx,
  beta_gy,
  af,
  n_gx,
  n_gy,
  n_overlap,
  cor_xy,
  prev_y = NA,
  sigma_x = 1,
  sigma_y = 1
)

Arguments

beta_gx

Array of true effects on x

beta_gy

Array of true effects on y

af

Array of effect allele frequencies

n_gx

Sample size of g-x association

n_gy

Sample size of g-y association

n_overlap

Number of overlapping samples

cor_xy

Observational correlation between x and y

prev_y

Disease prevalence of y. Default = NA (in which case treated as continuous)

sigma_x

SD of x. Default=1

sigma_y

SD of y. Default=1

Value

Data frame of summary statistics for x and y


explodecomputer/simulateGP documentation built on April 3, 2024, 2:38 a.m.