Learn R Programming

binhf (version 1.0-3)

invansc: Inverse Anscombe transformation

Description

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

Usage

invansc(y, n)

Arguments

y

input data vector.

n

the binomial size corresponding to the observed binomial values.

Value

x

vector of transformed data corresponding to y.

References

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

See Also

ansc, hfdenoise, hfdenoise.wav

Examples

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

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

y<-ansc(x,10)

x1<-invansc(y,10)

#this should be the original data.

# }

Run the code above in your browser using DataLab