getDifferences: Identify any significant differences between predicted data...

View source: R/getDifferences.R

getDifferencesR Documentation

Identify any significant differences between predicted data before an impact event and predicted data after an impact event

Description

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.

Details

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.

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

Examples

 ## Not run: 
getDifferences(beforePreds, afterPreds)
## End(Not run)


lindesaysh/MRSea documentation built on May 11, 2024, 11:30 p.m.