[R] a problem for metafor package

2012-12-31 Thread LiuXudong

Dear sir or madam
 
I want to know how to use metaforpackage do a meta anlysis,  forest plot  
show the results of whole study and  results of two subgroups
like this the forest plot show in the attachment.
 
looking forword to your reply
 

 
Regards and Cheers
 
Xudong Liu

 
School of Public Health and Primary Care
The Chinese University of Hong Kong
Email: liuxud...@cuhk.edu.hk

 


 Subject: Welcome to the R-help mailing list (Digest mode)
 From: r-help-requ...@r-project.org
 To: idliuxud...@hotmail.com
 Date: Mon, 31 Dec 2012 10:08:53 +0100
 
 Welcome to the R-help@r-project.org mailing list!
 
 To post to this list, send your message to:
 
 r-help@r-project.org
 
 General information about the mailing list is at:
 
 https://stat.ethz.ch/mailman/listinfo/r-help
 
 If you ever want to unsubscribe or change your options (eg, switch to
 or from digest mode, change your password, etc.), visit your
 subscription page at:
 
 https://stat.ethz.ch/mailman/options/r-help/idliuxudong%40hotmail.com
 
 
 You can also make such adjustments via email by sending a message to:
 
 r-help-requ...@r-project.org
 
 with the word `help' in the subject or body (don't include the
 quotes), and you will get back a message with instructions.
 
 You must know your password to change your options (including changing
 the password, itself) or to unsubscribe without confirmation. It is:
 
 lxd646253
 
 Normally, Mailman will remind you of your r-project.org mailing list
 passwords once every month, although you can disable this if you
 prefer. This reminder will also include instructions on how to
 unsubscribe or change your account options. There is also a button on
 your options page that will email your current password to you.
  __
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] a problem for metafor package

2012-12-31 Thread John Kane
The attachement did not come through  and we need some idea of what you are 
doing. Please see https://github.com/hadley/devtools/wiki/Reproducibility for 
some ideas of what we need.  

And please read the posting guide

John Kane
Kingston ON Canada


 -Original Message-
 From: idliuxud...@hotmail.com
 Sent: Mon, 31 Dec 2012 17:21:23 +0800
 To: r-help@r-project.org
 Subject: [R] a problem for metafor package
 
 
 Dear sir or madam
 
 I want to know how to use metaforpackage do a meta anlysis,  forest
 plot  show the results of whole study and  results of two subgroups
 like this the forest plot show in the attachment.
 
 looking forword to your reply
 
 
 
 Regards and Cheers
 
 Xudong Liu
 
 
 School of Public Health and Primary Care
 The Chinese University of Hong Kong
 Email: liuxud...@cuhk.edu.hk
 
 
 
 
 Subject: Welcome to the R-help mailing list (Digest mode)
 From: r-help-requ...@r-project.org
 To: idliuxud...@hotmail.com
 Date: Mon, 31 Dec 2012 10:08:53 +0100
 
 Welcome to the R-help@r-project.org mailing list!
 
 To post to this list, send your message to:
 
 r-help@r-project.org
 
 General information about the mailing list is at:
 
 https://stat.ethz.ch/mailman/listinfo/r-help
 
 If you ever want to unsubscribe or change your options (eg, switch to
 or from digest mode, change your password, etc.), visit your
 subscription page at:
 
 https://stat.ethz.ch/mailman/options/r-help/idliuxudong%40hotmail.com
 
 
 You can also make such adjustments via email by sending a message to:
 
 r-help-requ...@r-project.org
 
 with the word `help' in the subject or body (don't include the
 quotes), and you will get back a message with instructions.
 
 You must know your password to change your options (including changing
 the password, itself) or to unsubscribe without confirmation. It is:
 
 lxd646253
 
 Normally, Mailman will remind you of your r-project.org mailing list
 passwords once every month, although you can disable this if you
 prefer. This reminder will also include instructions on how to
 unsubscribe or change your account options. There is also a button on
 your options page that will email your current password to you.
 
 __
 R-help@r-project.org mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide
 http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.


FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] a problem for metafor package

2012-12-31 Thread Viechtbauer Wolfgang (STAT)
Dear Xudong,

First of all, most attachments are stripped on r-help -- yours didn't make it 
through either. Since you sent a separate e-mail to me personally (including 
the attachment), I can see what you want to accomplish, but let's keep this on 
the list.

Second, your mail to r-help contained the welcome message you received when 
you signed up for the mailing list. That message also contained your password 
(I removed that part from your message below). Maybe not such a wise thing to 
do.

Now, regarding your question. You could just include the information from the 
whole study and the two subgroups in the dataset and then use the forest() 
function. However, for computing the overall estimate (in case you also want to 
include this in the forest plot), you need to decide how that should be done. 
Do you want to just count the results from whole study or just the two subsets? 
(using the information from the whole study and the two subsets would be 
double-counting and not appropriate). In either case, you could then pass the 
respective data to rma(), compute the overall estimate, and add it to the 
forest plot using the addpoly() function.

I suggest carefully studying:

?forest.default
?addpoly.default

and especially the examples. If you then get stuck, please provide minimal and 
self-contained code that can be used as a starting point for a more specific 
response.

Best,
Wolfgang

--   
Wolfgang Viechtbauer, Ph.D., Statistician   
Department of Psychiatry and Psychology   
School for Mental Health and Neuroscience   
Faculty of Health, Medicine, and Life Sciences   
Maastricht University, P.O. Box 616 (VIJV1)   
6200 MD Maastricht, The Netherlands   
+31 (43) 388-4170 | http://www.wvbauer.com   

 -Original Message-
 From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]
 On Behalf Of LiuXudong
 Sent: Monday, December 31, 2012 10:21
 To: r-help@r-project.org
 Subject: [R] a problem for metafor package
 
 Dear sir or madam
 
 I want to know how to use metaforpackage do a meta anlysis,  forest
 plot  show the results of whole study and  results of two subgroups
 like this the forest plot show in the attachment.
 
 looking forword to your reply
 
 Regards and Cheers
 
 Xudong Liu
 
 School of Public Health and Primary Care
 The Chinese University of Hong Kong
 Email: liuxud...@cuhk.edu.hk

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.