Identify any significant differences between predicted data before an impact event and predicted data after an impact event
Source:R/getDifferences.R
getDifferences.Rd
Identify any significant differences between predicted data before an impact event and predicted data after an impact event
Usage
getDifferences(beforePreds, afterPreds, quants = c(0.025, 0.975))
Arguments
- beforePreds
Matrix of bootstrap predictions (n x B) to each grid cell before impact (same length and order as
afterPreds
)- afterPreds
Matrix of bootstrap predictions (n x B) to each grid cell after impact (same length and order as
beforePreds
)- quants
(
default = =c(.025,.975)
) Quantile for significance.
Value
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