EN.hJAM | R Documentation |
Function to implement regularized hJAM, including elastic net hJAM and lasso hJAM.
EN.hJAM(
betas.Gy,
N.Gy,
eaf.Gy = NULL,
Geno,
A,
tune_glmnet = 0.5,
ridgeTerm = FALSE
)
betas.Gy |
The betas in the paper: the marginal effects of SNPs on the phenotype (Gy) |
N.Gy |
The sample size of the GWAS where you obtain the betas.Gy and betas_se.Gy |
eaf.Gy |
The effect allele frequency of the SNPs in betas.Gy |
Geno |
The individual level data of the reference panel. Must have the same order of SNPs as in the betas.Gy. |
A |
The conditional A matrix. |
tune_glmnet |
The |
ridgeTerm |
Add a small elelment to the diagnoal of X'X to make the matrix invertable. |
An object of the Regularized hJAM
The number of SNPs that the user use in the instrument set.
The number of selected intermediates, regardless of the credible sets.
The label/name for each selected intermediates.
The coefficients of selected intermediates. Otherwise will be zero.
Lai Jiang
data(ENhJAM.SimulationSet)
EN.hJAM(betas.Gy = Simulation.betas.gwas, N.Gy = 5000, eaf.Gy = Simulation.maf.gwas,
Geno = Simulation.Geno, A = Simulation.Amatrix, ridgeTerm = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.