Skip to content

Commit a62018f

Browse files
authored
Merge pull request #638 from remlapmot/v0-6-17
TwoSampleMR 0.6.17
2 parents cb902d4 + bbeff5a commit a62018f

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: TwoSampleMR
22
Title: Two Sample MR Functions and Interface to MRC Integrative
33
Epidemiology Unit OpenGWAS Database
4-
Version: 0.6.16
4+
Version: 0.6.17
55
Authors@R: c(
66
person("Gibran", "Hemani", , "[email protected]", role = c("aut", "cre"),
77
comment = c(ORCID = "0000-0003-0920-1055")),

NEWS.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# TwoSampleMR v0.6.17
2+
3+
(Release date 2025-06-22)
4+
5+
* Continued amends to the plot for MR-GRIP (thanks @fdudbridge)
6+
17
# TwoSampleMR v0.6.16
28

39
(Release date 2025-06-05)

R/scatterplot.R

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,7 @@ mr_scatter_plot <- function(mr_results, dat) {
5252
d$se.outcome,
5353
default_parameters()
5454
)
55-
# keep intercept at 0 because plot on gd versus gp axes
56-
# mrres$a[mrres$method == "MR GRIP"] <- temp$b_i
57-
msgtxt <- paste0("Strictly, it is only valid to view the MR-GRIP estimate on the standard MR scatter plot axes when the intercept is zero. The estimated intercept for this model is: ", signif(temp$b_i))
58-
message(msgtxt)
55+
mrres$a[mrres$method == "MR GRIP"] <- stats::lm(d$beta.outcome - temp$b*d$beta.exposure ~ 1, weights = 1/d$se.outcome^2)$coef
5956
}
6057

6158
ggplot2::ggplot(

0 commit comments

Comments
 (0)