[R-meta] forest plot function overall effect size rounded

Michael Dewey ||@t@ @end|ng |rom dewey@myzen@co@uk
Wed Oct 11 16:45:53 CEST 2023


Dear Gabriel

Comments in-line

On 11/10/2023 15:10, Gabriel Cotlier via R-sig-meta-analysis wrote:
> Hello all,
> I would like to ask how to modify in the forest plot the value of the
> overall effect size to be round (overall_effect_size, 1) since it
> aurtomatically does round(overall_effect_size, 2) for instance in my case
> the model's output overall effect size is :
> 
> p0 <- predict(res)
> p0
> # pred     se  ci.lb  ci.ub   pi.lb  pi.ub
> # 0.7080 0.2950 0.1297 1.2863 -2.9950 4.4110
> 
> That is 0.7080 but in the forest lot is round(0.7080, 2) that is 0.71 as it
> appears in the forest plot (lower right corner):
> 
>    100% 0.71 [0.13, 1.29]
> 
> Therefore I would like to access the variable in the forest plot and set it
> to be round(0.7080, 1) so as to have the overall effect size as is in the
> model output, that is 0.70 or alternatively 0.7080.

But round(0.7080, 1) is 0.7, not 0.70. Rounded to 2 decimals it is 0.71 
which you state you do not want. Perhaps it would help if you explained 
what you mean by rounding as what you ask does not seem to correspond to 
what is usually meant by the term.

Michael

> 
> Thanks a lot.
> Kid regards,
> Gabriel
> 
> 	[[alternative HTML version deleted]]
> 
> _______________________________________________
> R-sig-meta-analysis mailing list @ R-sig-meta-analysis using r-project.org
> To manage your subscription to this mailing list, go to:
> https://stat.ethz.ch/mailman/listinfo/r-sig-meta-analysis
> 

-- 
Michael



More information about the R-sig-meta-analysis mailing list