theta.h.landscape {rmetasim}R Documentation

Calculate theta using heterozygosity

Description

Calculate theta from a landscape based upon heterozygosity.

Usage

 theta.h.mat <- theta.h.landscape(rland)

Arguments

rland the Rmetasim landscape object

Details

Uses routines in the package 'ape'

Value

A matrix with num loci columns and num populations rows. Each element reflects the estimated theta for that population x locus combination

See Also

theta.k.landscape, theta.s.landscape

Examples


  exampleland <- new.example.landscape()
  exampleland <- simulate.landscape(exampleland, 4)

  library(ape)
  theta.h.mat <- theta.h.landscape(exampleland)
  theta.h.mat

[Package rmetasim version 1.0.3 Index]