Learn R Programming

poppr (version 2.6.1)

boot.ia: 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.

See Also

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

Examples

Run this code
# NOT RUN {
data(Pinf)
boot.ia(Pinf, reps = 99)
# }

Run the code above in your browser using DataLab