Learn R Programming

hierfstat (version 0.04-22)

betas: Estimate \(\beta\)s per population and a bootstrap confidence interval

Description

Estimate \(\beta\)s per population and a bootstrap confidence interval

Usage

betas(dat,nboot=0,lim=c(0.025,0.975),diploid=TRUE)

Arguments

dat

data frame with genetic data and pop identifier

nboot

number of bootstrap samples

lim

width of the bootstrap confidence interfal

diploid

whether the data comes from a diploid organism

Value

betaiovl Average \(\beta_i\) over loci

ci The bootstrap confidence interval

Hi Within population gene diversities

Hb Between populations gene diversities

Details

Beware, only valid for non inbred diploids!

Examples

Run this code
# NOT RUN {
dat<-sim.genot(size=100,N=c(100,1000,10000),nbloc=50,nbal=10)
betas(dat,nboot=100)$ci
# }

Run the code above in your browser using DataLab