Learn R Programming

binhf (version 1.0-3)

asyvar: Asymptotic variance function

Description

This function gives values for the asymptotic mean of the new binomial Fisz random variable.

Usage

asyvar(xgrid = seq(0, 1, length = 21), ygrid = seq(0, 1, length = 21))

Arguments

xgrid

vector of x co-ordinate probabilities.

ygrid

vector of y co-ordinate probabilities.

Value

asyvar

A matrix of dimension length(xgrid)xlength(ygrid) of values of the variance.

Details

Due to the form of the asymptotic variance for equal binomial sizes, this does not need a specification of the binomial size binsize (see asymean).

References

Fisz, M. (1955), The Limiting Distribution of a Function of Two Independent Random Variables and its Statistical Application, Colloquium Mathematicum, 3, 138--146.

See Also

asymean, statgen

Examples

Run this code
# NOT RUN {
variance<-asyvar(xgrid=seq(0,1,length=21),ygrid=seq(0,1,length=21))

## this produces a 21x21 matrix for an equally-spaced grid of binomial proportions. 
# }

Run the code above in your browser using DataLab