ip.2: Graph of the (Unconditional) Intrinsic Prior for a Two...

Description Usage Arguments Value Note Author(s) References See Also Examples

View source: R/HWEintrinsic.R

Description

This function produces the 3D-plot for the (unconditional) intrinsic prior based on a sample of two alleles data as described in Consonni et al. (2011).

Usage

1
  ip.2(t, k = 30)

Arguments

t

training sample size.

k

number of grid points for the alleles frequencies at which the prior is evaluated.

Value

No object is returned by this function.

Note

This function provides the plot of the (unconditional) intrinsic prior only for two alleles data.

Author(s)

Sergio Venturini sergio.venturini@unibocconi.it

References

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

See Also

cip.2, plot-methods.

Examples

1
2
3
4
5
6
7
8
## Not run: 
# ATTENTION: the following code may take a long time to run! #

### The following code reproduces Figure 3 in Consonni et al. (2011) ###
t <- 30
ip.2(t, 40)

## End(Not run)

HWEintrinsic documentation built on May 2, 2019, 12:20 p.m.