Skip to contents

Simulate Multiple Traits from Genotype and Assigned Causal Index Vector

Usage

sim_beta_fix_variant(G, causal_index, ntrait = 1, is_h2g_total = TRUE)

Arguments

G

Genotype matrix.

causal_index

Vector of indices for causal variants.

ntrait

Number of traits to simulate.

is_h2g_total

Logical indicating if h2g is total (TRUE) or per-SNP (FALSE).

Value

Matrix of effect sizes (variants × traits).