气泡图不显示元包 R 中的所有点
Bubble plot not displaying all points in meta package R
我是编码新手,所以我希望我能提供所有必要的信息来回答这个问题!我正在使用 R 中的 meta 包进行元回归,并使用 bubble 函数对其进行绘制。我有 173 个点要绘制,但是,它只在图表上显示我的数据集中的 2 个点,我不确定为什么。
它说:
In bubble.metareg(m.gen.reg, studlab = TRUE, :
Only first covariate in meta-regression ('population_density') considered in bubble plot. No regression line plotted.
我不确定那是什么意思,也没有找到显示我所有观点的方法。如果您知道该消息的含义或如何解决它,我将不胜感激。
Image of graph currently being produced
这是我的代码:
library(tidyverse)
library(dplyr)
library(meta)
library(stringr)
library(tidyr)
#took my large dataset and made it smaller to work with
small_dataset_2 <- read.csv("FirstRegressionData.csv",stringsAsFactors = F) %>%
select(Author,Location,Date,value,Lower_Confidence_Limits, Upper_Confidence_Limits,Density_km2) %>%
mutate(Stand_err =((Upper_Confidence_Limits - value)/1.96)) %>%
na.omit("small_dataset_2")
#object used for meta analysis
m.gen <- metagen (TE = small_dataset$value,
seTE = Stand_err,
studlab = Location,
data = small_dataset,
comb.fixed = FALSE,
comb.random = TRUE,
overall.hetstat = TRUE,
method.tau = "REML")
population_density <- small_dataset_2$Density_km2
m.gen.reg <- metareg(m.gen, ~population_density)
m.gen.reg
bubble(m.gen.reg,
studlab = TRUE,
xlim = c(1,500),
ylim = c(0,18),
regline = TRUE,
xlab = ("x-axis"),
ylab = ("y-axis"),
col.line = "blue"
)
谢谢!
欢迎光临! meta 包状态的 instructions 关于您正在使用的气泡功能(bubble.metareg 在说明中):
It is a scatter plot with the
treatment effect for each study on the y-axis and the covariate used in the meta-regression.
我强调了 来表示只识别了一个协变量。所以我的猜测是 metareg 没有为 bubble.
生成预期的对象
当您打印 m.gen.reg 时,它是否类似于 Doing Meta Analysis in R online book 的第 8.2 节中的以下内容?
此外,metagen 用于 small_dataset,未在任何地方定义。我反而看到 small_dataset_2.
我是编码新手,所以我希望我能提供所有必要的信息来回答这个问题!我正在使用 R 中的 meta 包进行元回归,并使用 bubble 函数对其进行绘制。我有 173 个点要绘制,但是,它只在图表上显示我的数据集中的 2 个点,我不确定为什么。
它说:
In bubble.metareg(m.gen.reg, studlab = TRUE, :
Only first covariate in meta-regression ('population_density') considered in bubble plot. No regression line plotted.
我不确定那是什么意思,也没有找到显示我所有观点的方法。如果您知道该消息的含义或如何解决它,我将不胜感激。
Image of graph currently being produced
这是我的代码:
library(tidyverse)
library(dplyr)
library(meta)
library(stringr)
library(tidyr)
#took my large dataset and made it smaller to work with
small_dataset_2 <- read.csv("FirstRegressionData.csv",stringsAsFactors = F) %>%
select(Author,Location,Date,value,Lower_Confidence_Limits, Upper_Confidence_Limits,Density_km2) %>%
mutate(Stand_err =((Upper_Confidence_Limits - value)/1.96)) %>%
na.omit("small_dataset_2")
#object used for meta analysis
m.gen <- metagen (TE = small_dataset$value,
seTE = Stand_err,
studlab = Location,
data = small_dataset,
comb.fixed = FALSE,
comb.random = TRUE,
overall.hetstat = TRUE,
method.tau = "REML")
population_density <- small_dataset_2$Density_km2
m.gen.reg <- metareg(m.gen, ~population_density)
m.gen.reg
bubble(m.gen.reg,
studlab = TRUE,
xlim = c(1,500),
ylim = c(0,18),
regline = TRUE,
xlab = ("x-axis"),
ylab = ("y-axis"),
col.line = "blue"
)
谢谢!
欢迎光临! meta 包状态的 instructions 关于您正在使用的气泡功能(bubble.metareg 在说明中):
It is a scatter plot with the treatment effect for each study on the y-axis and the covariate used in the meta-regression.
我强调了 来表示只识别了一个协变量。所以我的猜测是 metareg 没有为 bubble.
生成预期的对象当您打印 m.gen.reg 时,它是否类似于 Doing Meta Analysis in R online book 的第 8.2 节中的以下内容?
此外,metagen 用于 small_dataset,未在任何地方定义。我反而看到 small_dataset_2.