Generate beta hats from standardized or non-standardized direct SNP effects and LD
Source:R/gen_bhat_from_b.R
gen_bhat_from_b.RdGenerate beta hats from standardized or non-standardized direct SNP effects and LD
Arguments
- b_joint
Matrix of joint effect sizes
- N
Sample size, scalar, vector, matrix, or data.frame. See
?sim_mvfor more details.- trait_corr
Matrix of population trait correlation (traits by traits)
- R_LD
LD pattern (optional). See
?sim_mvfor more details.- R_LD_eigen
Optionally, also supply list of eigen decompositions. The program will not check that this matches R_LD.
- af
Allele frequencies (optional, allowed only if
R_LDis missing). See?sim_mvfor more details.- est_s
Estimate standard errors?
- input_geno_scale
Genotype scale of effects in b_joint
- input_pheno_sd
Phenotype sd for effects in b_joint
- output_geno_scale
Output genotype scale
- output_pheno_sd
Output phenotype sd