landscape.theta.s: Calculate theta using segregating sites

View source: R/pegas_interface.R

landscape.theta.sR Documentation

Calculate theta using segregating sites

Description

Calculate theta from a landscape based upon the number of seqregating sites.

Usage

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

Examples

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

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