Skip to content

A script for bootstrapping repeated field survey data to understand the results of combining different combinations of surveys together

Notifications You must be signed in to change notification settings

qgroom/grouped-surveys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

grouped-surveys

This script was written to examine the effect of combining botanical field surveys from multiple indepentent observers. The rational is that false-positive observations can be reduced by combining the species lists created by one or more observer. However, this increases the number of false-negative observations. The script bootstraps the selection of surveys and calculates a mean number of false-positive ands false-negative observations when the surveys are combined.

It takes an input matrix in which the columns are species and each row is the results of a survey. Where a species was not found in the survey the value in the column is 0. A 1 signifies that the species was correctly observered in the survey. A 2 signifies that the species was observed in the survey, but was, in fact, absent.

####usage

groupedSurveys.pl surveysFile outputFileName #replicates #surveys

The survey file is the input matrix.
replicates is the number of times to repeat the bootstraping.
surveys is the number of surveys in the input to combine.

The output file contains the following columns

  1. the replicate number
  2. the number of species found, assuming each combined survey has to have found that species
  3. number of true-positives in combined surveys
  4. the total number of species if just two surveys are combined
  5. number of false-positives in combined surveys
  6. the total number of false-positives if just two surveys are combined
  7. the total number of true-positives if just two surveys are combined
  8. accumulated sum of true-positives found
  9. accumulated sum of false-positives found

The file OldRiverBedInput.txt has been added as an example of an input file

About

A script for bootstrapping repeated field survey data to understand the results of combining different combinations of surveys together

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages