h2_to_s2: Helper function for turning the h2 parameterization into the...

View source: R/simulate.R

h2_to_s2R Documentation

Helper function for turning the h2 parameterization into the variance one.

Description

Helper function for turning the h2 parameterization into the variance one.

Usage

h2_to_s2(M, ha, hb, hu, nu, eta, gamma, delta, p, q, r, s)

Arguments

M

Total number of SNPs to simulate, including null SNPs.

ha

Heritability of phenotype A.

hb

Heritability of phenotype B.

hu

Heritability of phenotype U.

nu

Causal effect of U on A.

eta

Causal effect of U on B.

gamma

Causal effect of A on B.

delta

Causal effect of B on A.

p

Proportion of non-null SNPs.

q

Proportion of non-null SNPs effecting U.

r

Proportion of non-null SNPs effecting A.

s

Proportion of non-null SNPs effecting B.


brielin/WWER documentation built on May 22, 2022, 7:28 p.m.