CalcOddsPredation: A function to calculate odds for predation from observed...

Description Usage Arguments Value See Also Examples

Description

A function to calculate odds for predation from observed selection frequencies using MWNCHHypergeo model.

Usage

1
2
CalcOddsPredation(freq.alive, freq.all, map.alive = NULL,
  map.all = NULL)

Arguments

freq.alive

A vector of observed absolute frequencies for the three genotypes in the alive population

freq.all

An vector of observed absolute frequencies for the three genotypes in the population before selection

map.alive

Optional. Integer list containing the ids of specific columns of freq.alive. Increase speed for large scale calls. Items of map.alive must be named "homo.ref", "hetero", "homo.alt", "missval", "total".

map.all

Optional. Integer list containing the ids of specific columns of freq.all. Increase speed for large scale calls. Items of map.all must be named "homo.ref", "hetero", "homo.alt", "missval", "total".

Value

A vector of odds for the 3 genotypes, according to the MWNCHHypergeo model.

See Also

For more information, see FindIdsGtCounts which this function binds.

Examples

1
2
3
4
5
6
## Not run: 
f.alive <- c(17, 3, 15, 1, 36)
f.all  <- c(24, 5, 22, 2, 53)
CalcOddsPredation(f.alive, f.all)

## End(Not run)

laurentlab-mpipz/rsurvival documentation built on May 29, 2019, 9:14 a.m.