| ansc {binhf} | R Documentation |
Does Anscombe's inverse sine transformation on a vector input.
ansc(x, binsize)
x |
input data vector |
binsize |
the binomial size corresponding to the observed binomial values. |
Performs the Anscombe calculation: A=sin^{-1}√{(x+3/8)/(binsize+3/4)}.
y |
vector of transformed data corresponding to x. |
Matt Nunes (m.nunes@ucl.ac.uk)
Anscombe, F.J. (1948) The transformation of poisson, binomial and negative binomial data. Biometrika, 35, 246-254.
afgen, hfdenoise, hfdenoise.wav, link{invansc}
#generate binomial data: x<-rbinom(100,10,.5) y<-ansc(x,10) #this is now the transformed data.