p.boot: Calculates mean values within the bins.

Description Usage Arguments Value Examples

Description

This calculates mean heterozygosity and Fst values for each bin used in bootstrapping.

Usage

1
p.boot(actual.fsts, boot.out,boot.means=NULL)

Arguments

actual.fsts

The first item in the output lists from fst.boot.

boot.out

The output from a bootstrapping run. Either supply this or boot.means.

boot.means

The output from fst.boot.means. Either supply this or bootstrapping output.

Value

pvals

A numeric containing uncorrected p-values for each locus. The names attribute are the locus names.

Examples

1
2
3
4
5
6
7
8
9
  
  ## Not run: 
    gfile<-system.file("extdata", "example.genepop.txt",package = 'fsthet')
    gpop<-my.read.genepop(gfile)
    fsts<-calc.actual.fst(gpop)
    boot.out<-as.data.frame(t(replicate(10, fst.boot(gpop))))
    boot.pvals<-p.boot(fsts,boot.out=boot.out)
  
## End(Not run)

fsthet documentation built on May 2, 2019, 7:55 a.m.