# Evaluates the maximum likelihood estimates of the parameters of various models in the k allele case

### Description

Function to obtain the MLEs of parameters under the HWE, single *f* and saturated models. For the single *f* model numerical maximization is required if *k>2*, where *k* is the number of alleles.

### Usage

1 | ```
HWEmodelsMLE(nvec)
``` |

### Arguments

`nvec` |
vector of genotype frequencies in the order |

### Value

`phat` |
matrix of |

`qhat` |
MLEs of |

`fqhat` |
MLEs of |

`fsingle` |
MLE of single |

`fmaxloglik` |
maximized log-likelihood (without the normalizing constant), under the single |

`fmin` |
estimated lower bound of |

### Author(s)

Jon Wakefield (jonno@u.washington.edu)

### References

Wakefield, J. (2010). Bayesian methods for examining Hardy-Weinberg equilibrium. Biometrics; Vol 66:257-65

Weir, B.S. (1996). Genetic Data Analysis II. Sunderland MA: Sinauer.

### Examples

1 2 | ```
data(DiabRecess)
HWEmodelsMLE(nvec=DiabRecess)
``` |