BootStrap3 {pooledpeaks}R Documentation

Perform Bootstrap Analysis

Description

This function performs bootstrap analysis on genetic data.

Usage

BootStrap3(A = data.frame, Rep = 20, Stat = 1)

Arguments

A

Data frame containing data as read in by LoadData

Rep

Number of bootstrap replicates.

Stat

Type of statistic to compute (1 for AlRich, 2 for TwoLevelGST)

Value

Either a matrix of AlRich statistics or a list containing various statistics computed using TwoLevelGST.

Examples

genetic_data <- data.frame(
Locus = c(1, 1, 1, 1, 1, 2, 2, 2, 2, 2),
Locus_allele = c("Marker1", "n", 1, 2, 3, "Marker2", "n", 1, 2, 3),
Sample1 = c(NA, 10, 0.5, 0.5, 0, NA, 10, 0.2, 0.3, 0.5),
Sample2 = c(NA, 20, 0.1, 0.2, 0.7, NA, 20, 0.3, 0.4, 0.3),
Sample3 = c(NA, 30, 0.3, 0.4, 0.3, NA, 30, 0.4, 0.2, 0.4)
)

BootStrap3(A=genetic_data, Rep=10, Stat=1)
BootStrap3(A=genetic_data, Rep=10, Stat=2)

[Package pooledpeaks version 1.2.2 Index]