boot.dna-methods {haplotypes} | R 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 |
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)
[Package haplotypes version 1.1.3.1 Index]