vza_rescale: Parametric bootstrap for rescaling a la the vander zanden...

Description Usage Arguments Value

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

Description

This is a vectorized and much more efficient implementation of the original rescale function from the Vander Zanden appendix. It takes the output of group_birds_by_location directly and does the parametric bootstrapping for vza_rescale_reps samples.

Usage

1
vza_rescale(SBL, vza_rescale_reps = 1000)

Arguments

SBL

the data frame that summarizes the isotope feather data and isoscape predictions at each location. This must have columns of cnt, meanH, sdH, meaniso, sdiso

vza_rescale_reps

Number of simulated regressions to do. Default is 1000.

Value

Returns a matrix with vza_rescale_reps rows. Column 1 is "intercepts" and column two is "slopes"


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