Determine a p-value for the strength of similarity between two bullets based on scores for each land-to-land comparison.
Arguments
- land1
vector with land ids of the LEAs in bullet 1
- land2
vector with land ids of the LEAs in bullet 2
- score
real-valued vector consisting of land-to-land comparisons. Higher values are assumed to describe higher similarity.
- sigma0
real valued, standard deviation of the different source distribution. If
NA
(default), the standard deviation of the scores corresponding to non-matches (after selecting the highest phase) is taken. Real-values are interpreted as fixed standard deviation. The user can provide their own function of the formfunction (data)
, wheredata
is a data frame withland1, land2, score,
andphase
. Thephase
vector consists of integer values 1, ...,k
, wherek
is the maximum of the number of unique lands in land1 and land2. The values are ordered such that the highest valuek
of phase corresponds to the elements in score with the highest average score.