Learn R Programming

dirmult (version 0.1.1)

weirMoM: Method of moment estimator of theta

Description

Estimates $\theta$ using a method of moment (MoM) estimate by 'Weir and Hill (2002).'

Usage

weirMoM(data, se=FALSE)

Arguments

data
A matrix or table with counts. Rows represent subpopulations and columns the different categories of the data. Zero rows or columns are automaticly removed.
se
Logical. Determines if a standard error of theta sould be computed or not. The variance is based on an expression by Li cited in 'Weir and Hill (2002)'.

Value

  • MoM-estimate (and standard error) of theta.

concept

  • Genetics
  • Overdispersion
  • Dirichlet-multinomial

References

Weir, B. S. and W. G. Hill (2002). 'Esimating F-statistics'. Annu Rev Genet 36: 721-750

See Also

dirmult.summary

Examples

Run this code
data(us)
weirMoM(us[[1]],se=TRUE)

Run the code above in your browser using DataLab