Learn R Programming

binhf (version 1.0-3)

ansc: Anscombe transformation

Description

Does Anscombe's inverse sine transformation on a vector input.

Usage

ansc(x, binsize)

Arguments

x

input data vector

binsize

the binomial size corresponding to the observed binomial values.

Value

y

vector of transformed data corresponding to x.

Details

Performs the Anscombe calculation: \(A=sin^{-1}\sqrt{(x+3/8)/(binsize+3/4)}\).

References

Anscombe, F.J. (1948) The transformation of poisson, binomial and negative binomial data. Biometrika, 35, 246-254.

See Also

afgen, hfdenoise, hfdenoise.wav, link{invansc}

Examples

Run this code
# NOT RUN {
#generate binomial data:

x<-rbinom(100,10,.5)

y<-ansc(x,10)

#this is now the transformed data.

# }

Run the code above in your browser using DataLab