mixIE_multiple_start | R Documentation |
Perform CEM algorithm with multiple starting values
mixIE_multiple_start(
b_exp,
b_out,
se_exp,
se_out,
n,
initial_theta_n = 50,
initial_r = 0,
initial_c = 1,
initial_p = 0.2,
flip = 1,
EM_start = T,
EM_maxit = 2,
maxit = 200,
ivw = T,
egger = T,
lb.theta = NULL,
ub.theta = NULL
)
b_exp |
A vector of SNP effects on the exposure variable, usually obtained from a GWAS. |
b_out |
A vector of SNP effects on the outcome variable, usually obtained from a GWAS. |
se_exp |
A vector of standard errors of |
se_out |
A vector of standard errors of |
n |
Sample size of either one of the GWAS dataset. |
initial_theta_n |
Number of different thetas generated, default is 50. |
initial_r |
Initial value of r, the averaged pleiotropic effect, default is 0. |
initial_c |
Initial value of c, the overdispersion parameter for invalid IVs, default is 1. |
initial_p |
Initial value of the proportion of invalid IVs, default is 0.2. |
flip |
Whether to reorient the SNPs like Egger regression? |
EM_start |
Whether to use EM algorithm to start the CEM? Default is TRUE. |
EM_maxit |
Number of iterations used in EM algorithm to start the CEM, default is 2. |
maxit |
Maximum number of iterations for each optimization, default is 200. |
ivw |
Whether to add the fixed effect IVW in the model candidates explictly? Default is TRUE. |
egger |
Whether to add the Egger regression in the model candidates explictly? Default is TRUE. |
lb.theta |
Lower bound of theta from which starting values are generated. |
ub.theta |
Upper bound of theta from which starting values are generated. |
A list
A vector of estimated causal effect for different starting values ordered by BIC
A vector of corresponding standard error of theta
A vector of corresponding two-sided p-value of theta
A vector of estimated overdispersion parameter for different starting values ordered by BIC
A vector of estimated pleiotropic effect for different starting values ordered by BIC
A vector of corresponding standard error of r
A vector of estimated proportion of invalid IVs for different starting values ordered by BIC
A vector of BIC for different starting values sorting increasingly
A vector of number of iterations for different starting values ordered by BIC
A matrix of posterior probabilities of each IVs being invalid for different starting values ordered by BIC
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.