boot.ia {poppr}R Documentation

Bootstrap the index of association

Description

This function will perform the index of association on a bootstrapped data set multiple times to create a distribution, showing the variation of the index due to repeat observations.

Usage

boot.ia(gid, how = "partial", reps = 999, quiet = FALSE, ...)

Arguments

gid

a genind or genclone object

how

method of bootstrap. The default how = "partial" will include all the unique genotypes and sample with replacement from the unique genotypes until the total number of individuals has been reached. Using how = "full" will randomly sample with replacement from the data as it is. Using how = "psex" will sample from the full data set after first weighting the samples via the probability of encountering the nth occurence of a particular multilocus genotype. See psex() for details.

reps

an integer specifying the number of replicates to perform. Defaults to 999.

quiet

a logical. If FALSE, a progress bar will be displayed. If TRUE, the progress bar is suppressed.

...

options passed on to psex()

Value

a data frame with the index of association and standardized index of association in columns. Number of rows represents the number of reps.

Note

This function is experimental. Please do not use this unless you know what you are doing.

See Also

ia(), pair.ia(), psex()

Examples

data(Pinf)
boot.ia(Pinf, reps = 99)

[Package poppr version 2.9.6 Index]