Dear R-Team, How can I do arcsine tzransformation in R? My data is proportional score. Could you please help me out? Best, Samsad [[alternative HTML version deleted]]
On Sun, 31 Jul 2016, Samsad Afrin Himi wrote:> Dear R-Team, > > How can I do arcsine tzransformation in R? My data is proportional score.?asin> Could you please help me out?This is such a simple task that it is difficult to tell what very basic aspects of R you need help with. If you don't know what a data transformation is, or what it is for, then what should be obvious might not be [1] and this is not a stats theory forum [2]. And if you have no clue how to put data into R or perform basic calculations with it then you should be reading the "Introduction to R" [3] or taking a course. And if you are now taking a course, then you should be asking your instructor for assistance per the Posting Guide (no homework on this list). If this is not homework and you understand the theory and have a basic grasp of R syntax then you can clarify what you are stuck on by providing a reproducible example [4] of the R code that gets you to where you are stuck, including both sample data and code. Then we can narrow down the scope of discussion. Don't forget to switch your email program to plain text so your hard work (yes, asking questions by email isn't easy) does not get damaged by HTML formatting. [1] https://en.wikipedia.org/wiki/Data_transformation_(statistics) [2] e.g. stats.stackexchange.com [3] https://cran.r-project.org/doc/manuals/r-release/R-intro.pdf [4] http://adv-r.had.co.nz/Reproducibility.html --------------------------------------------------------------------------- Jeff Newmiller The ..... ..... Go Live... DCN:<jdnewmil at dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k
Dear Samsad, The usual use of the arcsine transformation for proportions is arcsine-squareroot. Thus, in R, for proportions in p, you can use asin(sqrt(p)). You could have found the asin() function yourself in several ways, including help.search("arcsin"), which turns up the help page for trigonometric functions. As well, the logit transformation, log(p/(1 - p)), is usually preferred to the arcsine-squareroot transformation for proportions because the former is unbounded. I hope this helps, John ----------------------------- John Fox, Professor McMaster University Hamilton, Ontario Canada L8S 4M4 Web: socserv.mcmaster.ca/jfox> -----Original Message----- > From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of Samsad Afrin > Himi > Sent: July 31, 2016 4:55 AM > To: r-help at r-project.org > Subject: [R] Arcsine Tranformation. > > Dear R-Team, > > How can I do arcsine tzransformation in R? My data is proportional score. > > Could you please help me out? > > Best, > Samsad > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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.