Compute heritability from standardized or non-standardized effects
Source:R/compute_h2.R
compute_h2.RdCompute heritability from standardized or non-standardized effects
Usage
compute_h2(
b_joint,
geno_scale = c("allele", "sd"),
pheno_sd = 1,
R_LD = NULL,
af = NULL,
full_mat = FALSE
)Arguments
- b_joint
matrix of standardized or non-standardized effects. Provide only one of these options.
- geno_scale
One of allele or sd, depending on scale of b_joint
- R_LD
LD pattern (optional). See
?sim_mvfor more details.- af
Allele frequencies (optional, allowed only if
R_LDis missing). See?sim_mvfor more details.- full_mat
If TRUE, return the full genetic variance-covariance matrix