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.dispersion
andloss.function
.over.dispersion
is a logical concerning should the model consider overdispersion (systematic pleiotropy). Andloss.function
allows 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