prob.marked {ConnMatTools}R Documentation

Returns probability a set of observations correspond to marked individuals

Description

This function returns the probability each of a set of observations corresponds to a marked individual given the distribution of scores for unmarked and marked individuals and the fraction of individuals that are marked.

Usage

prob.marked(obs, d.unmarked, d.marked, phi = 0.5, p = 1)

Arguments

obs

A vector of score values for a random sample of (marked and unmarked) individuals from the population

d.unmarked

A function representing the PDF of unmarked individuals. Must be normalized so that it integrates to 1 for the function to work properly.

d.marked

A function representing the PDF of marked individuals. Must be normalized so that it integrates to 1 for the function to work properly.

phi

The fraction of settlers at the destination population that originated at the source population. Defaults to 0.5, which would correspond to an even sample of marked and unmarked individuals.

p

Fraction of individuals (i.e., eggs) marked in the source population. Defaults to 1.

Value

A vector of the same size as obs containing the probability that each individual is marked

Author(s)

David M. Kaplan dmkaplan2000@gmail.com

References

Kaplan DM, Cuif M, Fauvelot C, Vigliola L, Nguyen-Huu T, Tiavouane J and Lett C (in press) Uncertainty in empirical estimates of marine larval connectivity. ICES Journal of Marine Science. doi:10.1093/icesjms/fsw182.

See Also

See also d.rel.conn.dists.func, optim.rel.conn.dists.


[Package ConnMatTools version 0.3.5 Index]