Description Usage Arguments Details Value Author(s) References See Also Examples
Samples binomial Fisz and Anscombe transformed random variables on a grid of binomial probabilities.
1 2 |
xgrid |
vector of x co-ordinate probabilities. |
ygrid |
vector of x co-ordinate probabilities. |
samples |
the number of samples to draw from each random variable. |
binsize |
the binomial size of the binomial random variables. |
The function produces sampled values from the random variable:
ζ(X_1,X_2)=\frac{X_1-X_2}{ √{ (X_1+X_2)(2*binsize-X_1-X_2)/ 2*binsize }}
,
where X_i are Bin(binsize,p_i) random variables, for all combinations of values of p_1 in xgrid and p_2 in ygrid.
For Anscombe's transformation,
A=sin^{-1}√{(x+3/8)/(binsize+3/4)}, the values correspond to the random variable with the larger binomial probability.
a |
an array of dimensions |
b |
an array of dimensions |
Matt Nunes (m.nunes@ucl.ac.uk)
Anscombe, F.J. (1948) The transformation of poisson, binomial and negative binomial Data, Biometrika,35, 246–254.
Nunes, M. and Nason, G.P. (2009) A multiscale variance stabilization for binomial sequence proportion estimation. Statistica Sinica, 19
(1491–1510).
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.