vza_assign: assign posterior probability of origin for a bird in each...

Description Usage Arguments Details

View source: R/vander-zanden-appendix.R

Description

This is a rewrite of the function assignment from the Vander Zanden appendix code.

Usage

1
vza_assign(rescale_mean, rescale_var, precip_sd, sd_indiv, bird_iso)

Arguments

rescale_mean

the tissue specific mean raster, such as the mean.raster component of the output of vza_mean_and_var_rasters.

rescale_var

tissue specific raster of standard deviations, such as the var.raster component of the output of vza_mean_and_var_rasters.

precip_sd

SD raster associated with the IsoMAP output. This is the precip component of the variance term.

sd_indiv

the individual component of the variance term. This is a value to be determined by the user. The standard approach is to use the mean of the SDs observed among individuals at all of the calibration sites.

bird_iso

a single value giving the isotope ratio found in the individual's feather.

Details

This is a fairly low-level function. It returns a raster of posterior probs (they are scaled to sum to one over all cells).


gaiah documentation built on July 8, 2020, 6:12 p.m.