Robust adjusted profile score
Usage
mr_raps(b_exp, b_out, se_exp, se_out, parameters = default_parameters())Arguments
- b_exp
Vector of genetic effects on exposure.
- b_out
Vector of genetic effects on outcome.
- se_exp
Standard errors of genetic effects on exposure.
- se_out
Standard errors of genetic effects on outcome.
- parameters
A list of parameters. Specifically,
over.dispersionandloss.function.over.dispersionis a logical concerning should the model consider overdispersion (systematic pleiotropy). Andloss.functionallows using either the squared error loss ("l2") or robust loss functions/scores ("huber"or"tukey"). The default isparameters=list(overdispersion = TRUE, loss.function = "tukey").
Value
List with the following elements:
- b
MR estimate
- se
Standard error
- pval
p-value
- nsnp
Number of SNPs