abun_assign: Breeding assignment using weighted stable isotope and...

Description Usage Arguments Value Examples

View source: R/abun_assign.R

Description

Function to estimate the posterior probability of origin and likely/unlikely origins for stable hydrogen isotope samples and relative breeding abundance

Usage

1
abun_assign(iso_data, rel_abun, iso_weight, abun_weight, odds = 0.67)

Arguments

iso_data

Dataframe containing the isotope-based assignment results from the iso_assign() function

rel_abun

Vector of relative abundance values for each breeding cell (should sum to 1).

iso_weight

Weight value to apply to stable isotope data.

abun_weight

Weight value to apply to relative abundance data.

odds

Odds for determining likely/unlikely origins. Default is 0.67.

Value

Data frames containing the isotope-based assignment results plus the weighted posterior probabilities & origins for each individual

Examples

1
2
woth_iso <- iso_assign(dd = woth_dd, df_base = woth_base$ddf, lat = woth_base$y, lon = woth_base$x)
abun_assign(iso_Data = woth_iso, rel_abun = woth_base$rel.abun, iso_weight = -0.7, abun_weight = 0)

crushing05/iso.assign2 documentation built on May 14, 2019, 12:06 p.m.