Chris Miller
2010-Jun-09 22:27 UTC
[R] back transforming arcsine transformations in metafor
Hi everyone, I'm using the metafor package to meta-analyze a set of proportions. This is working really well for the raw proportions, but is there a way to back-transform the arcsine transformed proportions in the rma or forest functions with the atransf option? The estimates and CIs for the transformed proportions need to be back-transformed to be the sin of the estimate squared. Back-transforming the output isn't a big deal - it's the forest plots that I would need the back transform for. Any help or advice would be greatly appreciated. Thanks in advance, Chris
Viechtbauer Wolfgang (STAT)
2010-Jun-10 11:15 UTC
[R] back transforming arcsine transformations in metafor
Dear Chris, Just define the following function: transf.iasin <- function(x) { z <- sin(x)^2 return(z) } to give the inverse of the arcsine transformation. Then specify this function under the atransf argument. I will add the transf.iasin() function to the package. Best, -- Wolfgang Viechtbauer http://www.wvbauer.com/ Department of Methodology and Statistics Tel: +31 (43) 388-2277 School for Public Health and Primary Care Office Location: Maastricht University, P.O. Box 616 Room B2.01 (second floor) 6200 MD Maastricht, The Netherlands Debyeplein 1 (Randwyck) ----Original Message---- From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Chris Miller Sent: Thursday, June 10, 2010 00:28 To: r-help at r-project.org Subject: [R] back transforming arcsine transformations in metafor> Hi everyone, > > I'm using the metafor package to meta-analyze a set of proportions. > This is working really well for the raw proportions, but is there a > way to back-transform the arcsine transformed proportions in the rma > or forest functions with the atransf option? The estimates and CIs > for the transformed proportions need to be back-transformed to be the > sin of the estimate squared. Back-transforming the output isn't a big > deal - it's the forest plots that I would need the back transform > for. Any help or advice would be greatly appreciated. > > Thanks in advance, > Chris > ______________________________________________ > R-help at 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.
Maybe Matching Threads
- Using Metafor package: how to backtransform model coefficients when Freeman Tukey double arcine transformation is used
- What to use for ti in back-transforming summary statistics from F-T double square-root transformation in 'metafor'
- z to r transformation within print.rma.uni and forest from the package metafor
- package metafor: error when setting 'col' and 'at' for a forest plot
- Annotate forest plot 'forest.rma()' for meta-analysis with metafor package