Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R functions of mr link 2 #8

Merged
merged 6 commits into from
Oct 29, 2024
Merged

Conversation

adriaan-vd-graaf
Copy link
Owner

This pull request adds R functions of MR-link-2 support if you have an associated region for exposure, the corresponding summary statistics for an outcome, and the LD matrix. loaded into R.

The likelihood functions are tested to be equal, however, due to differences in the optimization algorithms between R and Python, the final optimized parameters are tested to be within about 5% from each other. this means that a P value will go from 0.1 to somewhere between[ 0.095, 0.105 ]

Perhaps superfluous, but the Python version is the reference.

For the moment these functions are there only if you know what you're doing.
If you want more R support, feel free to send a message, and I'll make sure to help out!

@adriaan-vd-graaf adriaan-vd-graaf merged commit af03ea2 into main Oct 29, 2024
2 of 3 checks passed
@adriaan-vd-graaf adriaan-vd-graaf deleted the r_functions_of_mr_link_2 branch October 29, 2024 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant