R: Anscombe transformation

ansc {binhf} | R Documentation

## 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.

### Details

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

### Value

`y` | vector of transformed data corresponding to x.

### Author(s)

Matt Nunes (m.nunes@ucl.ac.uk)

### 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

    #generate binomial data:

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

    y<-ansc(x,10)

    #this is now the transformed data.

[Package binhf version 1.0-1 Index]