View source: R/getDifferences.R
getDifferences | R Documentation |
Identify any significant differences between predicted data before an impact event and predicted data after an impact event
getDifferences(beforePreds, afterPreds, quants = c(0.025, 0.975))
beforePreds |
Matrix of bootstrap predictions (n x B) to each grid cell before impact (same length and order as |
afterPreds |
Matrix of bootstrap predictions (n x B) to each grid cell after impact (same length and order as |
quants |
( |
This function finds the differences for every predicted grid cell for every bootstrap replicate. Quantiles are used to determine whether each difference is significantly different from zero and if so, in what direction.
A list is returned consisting of
mediandiff
: Vector of the median difference for each grid cell
lowerci
: Vector of the lower 2.5\
upperci
: Vector of the upper 97.5\
significanceMarker
: Vector of significance. 0: not significant, 1: significant and positive, -1: significant and negative
## Not run:
getDifferences(beforePreds, afterPreds)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.