Comments (3)
I cannot reproduce the problem with the following R code:
m1 <- metacont(10 + 1:4, 1:4, c(1:2, NA, 4),
10 + 1:4, 1:4, c(1:2, NA, 4))
m1
forest(m1)
m2 <- metacont(10 + c(1:4, NA), c(1:4, NA), c(1:2, NA, 4, NA),
10 + c(1:4, NA), c(1:4, NA), c(1:2, NA, 4, NA))
m2
forest(m2)
Which R code are you using to generate the forest plot?
BTW, k is the number of studies contributing data to the meta-analysis which is 10 in both your examples.
from meta.
The behaviour seems to appear by setting allstudies = F
in forest
in my code. Sorry, I should absolutely have mentioned that!
BTW, k is the number of studies contributing data to the meta-analysis which is 10 in both your examples.
Indeed, that was what I meant. In metacont
, k
does not seem to account for the study with only central tendency and forest
seems to always display k
studies when using allstudies = F
, therefore missing the last one.
So this exhibits the behaviour I described:
m1 <- metacont(10 + 1:4, 1:4, c(1:2, NA, 4),
10 + 1:4, 1:4, c(1:2, NA, 4))
forest(m1, allstudies = F) # yields Warning Message: In forest.meta(m1, allstudies = F) : n.stud != sum(sel)
m2 <- metacont(10 + 1:4, c(1:2, NA, 4), c(1:2, NA, 4),
10 + 1:4, c(1:2, NA, 4), c(1:2, NA, 4))
forest(m2, allstudies = F)
forest(m1, allstudies = F)
does not display study 4.
Perhaps this is intended and I am misunderstanding?
from meta.
Thank you for pointing out this bug (and the example R code).
from meta.
Related Issues (20)
- Atomic vector error when using id and byvar together HOT 2
- Subgroup forest plot does not display using metamean HOT 1
- Study gets 0 weight if N is very large HOT 2
- Fixed and random effect models for specified subgroups HOT 2
- Metacont doesn't calculate SMD if the number of participants is high HOT 1
- Cox (1970) and Cox & Snell (1989) method in the smd2or function HOT 1
- Aesthetics: remove overall effect estimate ref line and add line at top of pot HOT 3
- R version 4.2.2 meta package 6.0.0 forestmeta() sortvar command to sort studies according to weight is possible? HOT 1
- Subgroup plot with metaprop "Error in x$labels[[i]] : subscript out of bounds" HOT 1
- meta.forest; subgroup effect HOT 4
- Add more than 2 vertical lines to forest plot HOT 2
- No "pval.random.w" element for certain metaprop models HOT 1
- [BUG] Cannot get MH method to work in metabin under macOS HOT 4
- Function to extract effect size estimates from fitted objects HOT 1
- Formatting Issue in forest plot for Subgroup Analysis - meta package v6.6-0 HOT 1
- How to edit text in forest plot HOT 2
- forest.meta() not exported HOT 3
- Error in runGLMM using the metaprop function HOT 7
- Vignette - Figure 4 error, formal argument "type.study" matched by multiple actual arguments HOT 2
- Issue with forest.meta HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meta.