landscape.theta.h: Calculate theta using heterozygosity

View source: R/pegas_interface.R

landscape.theta.hR Documentation

Calculate theta using heterozygosity

Description

Calculate theta from a landscape based upon heterozygosity.

Usage

  landscape.theta.h(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

landscape.theta.k, landscape.theta.s

Examples


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

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

stranda/rmetasim documentation built on Aug. 25, 2023, 12:22 p.m.