TwoLocationTest: Two location permutation significance signficance test

View source: R/VarianceOrigin_Expansion_functions.R

TwoLocationTestR Documentation

Two location permutation significance signficance test

Description

This function takes the output from the HeatMappingPerm function and two user selected locations and assesses whether there is a significant difference between the identified correlation values at the two locations. The method does not look specifically at the user defined locations, but rather looks at the nearest grid square in the HeatMappingPerm output; this is primarily for computing efficiency.

Usage

TwoLocationTest(LocationA, LocationB, HeatMappingPermResults)

Arguments

LocationA

a numeric vector detailing the Latitude and Longitude values of the first location the user selects.

LocationB

a numeric vector detailing the Latitude and Longitude values of the second location the user selects.

HeatMappingPermResults

the output from the HeatMappingPerm function. This should be a list of two objects: TrueVarCorValues and PermutationArray.

SigLevel

a numeric value between 1 and 0 to set the required significance level for plotting a significant ploygon. Default is set to 0.05.

Value

The difference between the two locations and what level of significance this is.

Author(s)

Ardern Hulme-Beaman


ArdernHB/GeoOrigins documentation built on Nov. 19, 2022, 10:21 a.m.