boot.dna-methods: Generates single bootstrap replicate

boot.dna-methodsR Documentation

Generates single bootstrap replicate

Description

Methods for generating a single bootstrap replicate.

Usage

## S4 method for signature 'Dna'
boot.dna(x,replacement=TRUE)

Arguments

x

an object of class Dna.

replacement

boolean; whether the sampling is done with replacement or without replacement.

Value

an object of class Dna.

Methods

signature(x = "Dna")

generates single bootstrap replicate from a Dna object.

Author(s)

Caner Aktas, caktas.aca@gmail.com

Examples

	
	
data("dna.obj")
x<-dna.obj

## Generating a bootstrap replicate.
# with replacement
bxr<-boot.dna(x)
image(bxr)

# without replacement
bx<-boot.dna(x,replacement=FALSE)
image(bx)

haplotypes documentation built on July 26, 2023, 5:22 p.m.