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.
boot.ia(gid, how = "partial", reps = 999, quiet = FALSE, ...)a data frame with the index of association and standardized index of association in columns. Number of rows represents the number of reps.
a genind or genclone object
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.
an integer specifying the number of replicates to perform. Defaults to 999.
a logical. If FALSE, a progress bar will be displayed. If
TRUE, the progress bar is suppressed.
options passed on to psex()
ia(),
pair.ia(),
psex()
data(Pinf)
boot.ia(Pinf, reps = 99)
Run the code above in your browser using DataLab