P_ibd: computes the prob of identity by descent of a randomly chosen...

Description Usage Arguments Value

View source: R/subspawn.R

Description

This function will compute the prob of IBD after one model. See the vignette for more of an explanation of things.

Usage

1
P_ibd(Nf, Nm, nf, y, d, r, s)

Arguments

Nf

number of females that spawn exclusively in the wild

Nm

number of males that spawn exclusively in the wild

nf

number of females taken into the hatchery to be sub-spawned.

y

fraction of female eggs that are taken for subspawning.

d

number of males spawned with one female in the hathery.

r

the fraction of "male virility" that remains after a male has been squeezed at the hatchery.

s

number of adult returners expected from each hatchery female relative to 1 return from a wild female.

Value

Returns a double. Actually, it will return a vector of doubles if you want to do it for multiple values.


eriqande/subspawn documentation built on May 13, 2017, 8:22 p.m.