HWEdata-class | R Documentation |

This class encapsulates the data specification for a Bayesian objective analysis via intrinsic priors of the Hardy-Weinberg Testing Problem as described in Consonni et al. (2011).

Objects can be created by calls of the form `new("HWEdata", data)`

, where `data`

are the data in vector form.

`data.mat`

:Object of class

`"matrix"`

; data in matrix form.`size`

:Object of class

`"numeric"`

; number of alleles included in the data.`data.vec`

:Object of class

`"numeric"`

; data in vector form.

- plot
`signature(x = "HWEdata", y = "missing")`

: Provides a pictorial representation for a sample of genotype counts.- summary
`signature(object = "HWEdata")`

: Extracts the contents of an`HWEdata`

object.

Sergio Venturini sergio.venturini@unicatt.it

Consonni, G., Moreno, E., and Venturini, S. (2011). "Testing Hardy-Weinberg equilibrium: an objective Bayesian analysis". Statistics in Medicine, **30**, 62–74. https://onlinelibrary.wiley.com/doi/10.1002/sim.4084/abstract

`hwe.ibf`

,
`hwe.ibf.mc`

,
`hwe.ibf.plot`

.

```
data.tmp <- c(3, 9, 8)
dataset <- new("HWEdata", data = data.tmp)
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.