Re: [R] Metafor and forest(); not showing 'ilab' and text

2015-09-01 Thread Michael Dewey
Dear Navien If anyone on the list is going to help you you need to 1 - provide a minimal, self-contained and reproducible example of your problem 2 - start a new thread Note that in general list members provide help about R rather than statistics for which there are other lists. On

Re: [R] Metafor and forest(); not showing 'ilab' and text

2015-09-01 Thread Marco Colagrossi
I did read the help(rma.mv) and I also had look at the analysis by Konstantopoulos (2011) in the past few days. You have to apologize me but is the first meta analysis I'm trying to carry on, it is the first I'm working on R and moreover the terminology here is somehow different (and confusing)

Re: [R] Metafor and forest(); not showing 'ilab' and text

2015-08-31 Thread Marco Colagrossi
Thanks for your help, I got the mistake I was making and I managed to find a solution regarding those graphs; I don't want to abuse of your patience but I have three further questions: 1. Always regarding the forest plots, it is possible to make a cross-subset? I try to explain my self better; I

Re: [R] Metafor and forest(); not showing 'ilab' and text

2015-08-31 Thread Michael Dewey
Comments in line On 31/08/2015 16:08, Marco Colagrossi wrote: Thanks for your help, I got the mistake I was making and I managed to find a solution regarding those graphs; I don't want to abuse of your patience but I have three further questions: 1. Always regarding the forest plots, it is

Re: [R] Metafor and forest(); not showing 'ilab' and text

2015-08-31 Thread Marco Colagrossi
The solution that you proposed works perfectly, thank you very much. I'll wait for Wolfgang answer as I'm having few doubts about the models. Thanks On 31 August 2015 at 18:34, Michael Dewey wrote: > Comments in line > > On 31/08/2015 16:08, Marco Colagrossi wrote: >>

Re: [R] Metafor and forest(); not showing 'ilab' and text

2015-08-31 Thread Viechtbauer Wolfgang (STAT)
Have you read help(rma.mv)? It describes in detail what "random = ~ 1 | author" does. Also, I think you may find some of these useful: http://www.metafor-project.org/doku.php/analyses#multivariate_multilevel_meta-analysis_models Especially:

Re: [R] Metafor and forest(); not showing 'ilab' and text

2015-08-31 Thread Navien
Dear Wolfgang, Kindly please i have an issue with R code could you please help me. Best Regards On Mon, Aug 31, 2015 at 6:24 PM, Viechtbauer Wolfgang (STAT)-2 [via R] < ml-node+s789695n4711682...@n4.nabble.com> wrote: > Have you read help(rma.mv)? It describes in detail what "random = ~ 1 | >

Re: [R] Metafor and forest(); not showing 'ilab' and text

2015-08-25 Thread Viechtbauer Wolfgang (STAT)
The 'xlim' argument does not change the actual width of the plotting device. For that, you need to use the 'width' argument with whatever device you are actually using. You can then use the 'xlim' argument to create appropriate spacing to the left/right of the part of the plot that shows the

Re: [R] Metafor and forest(); not showing 'ilab' and text

2015-08-25 Thread Marco Colagrossi
Thanks again for your help. I'm sorry to bother you but I don't get how to widen the forest plot; if I try to change the values of xlim or the ilab.xpos values the width of the forest plot region does not change, but only moves on the graphs. What I'm I missing? forest(pc, var, ci95m, ci95p,

Re: [R] Metafor and forest(); not showing 'ilab' and text

2015-08-25 Thread Michael Dewey
Dear Marco When you change xlim it increases the width of the forest plot in the sense you describe. It does not push your text out of the way to make space for it but instead overprints it. You may like to use alim to truncate your confidence interval whiskers to fit within the space you

Re: [R] Metafor and forest(); not showing 'ilab' and text

2015-08-25 Thread Viechtbauer Wolfgang (STAT)
Further comments in line as well. -Original Message- From: Michael Dewey [mailto:li...@dewey.myzen.co.uk] Sent: Tuesday, August 25, 2015 13:23 To: Marco Colagrossi; Viechtbauer Wolfgang (STAT) Cc: r-help@r-project.org Subject: Re: [R] Metafor and forest(); not showing 'ilab' and

Re: [R] Metafor and forest(); not showing 'ilab' and text

2015-08-25 Thread Michael Dewey
Hello Marco Comments in line again On 24/08/2015 18:49, Marco Colagrossi wrote: I tried to upload the file once again. I tweaked it a bit, now my code is: forest(pc, var, ci95m, ci95p, slab = authoryear, psize=1, subset=(pub==1), xlim = c(-16, 6), ilab = cbind(SIMdv, SIMiv),

Re: [R] Metafor and forest(); not showing 'ilab' and text

2015-08-24 Thread Viechtbauer Wolfgang (STAT)
I cannot reproduce the issue with 'ilab' not being shown when using 'subset'. My guess is that the values for 'ilab.xpos' specified are actually outside of the plotting region. After you have drawn the forest plot, try: par(usr)[1:2] to see what the default limits actually are. Then use 'xlim'

[R] Metafor and forest(); not showing 'ilab' and text

2015-08-24 Thread Marco Colagrossi
Hello folks, I have a couple of issues with the metafor package, specifically with the forest graphs. I am currently conducting a Meta-Analysis in economics throughout the metafor package. My meta-analysis has the specific of having different cases from single studies, and this proven to be

Re: [R] Metafor and forest(); not showing 'ilab' and text

2015-08-24 Thread Michael Dewey
Dear Marco Comments inline On 24/08/2015 15:03, Marco Colagrossi wrote: Hello folks, I have a couple of issues with the metafor package, specifically with the forest graphs. I am currently conducting a Meta-Analysis in economics throughout the metafor package. My meta-analysis has the

Re: [R] Metafor and forest(); not showing 'ilab' and text

2015-08-24 Thread Marco Colagrossi
I tried to upload the file once again. I tweaked it a bit, now my code is: forest(pc, var, ci95m, ci95p, slab = authoryear, psize=1, subset=(pub==1), xlim = c(-16, 6), ilab = cbind(SIMdv, SIMiv), ilab.xpos = c(-7.5, -5.5), cex = 0.75) op - par(cex=.75, font=2)