powered by
Estimate the time since the onset of hybridization, following equation 14 in Janzen et al. 2018
estimate_time(J = NA, N = Inf, R = Inf, H_0 = 0.5, C = 1)
The number of generations passed since the onset of hybridization
The observed number of junctions
Population Size
Number of genetic markers
Frequency of heterozygosity at t = 0
Mean number of crossovers per meiosis (e.g. size in Morgan of the chromosome)
cat("example calculate time") J <- number_of_junctions(N = 100, R = 1000, H_0 = 0.5, C = 1, t = 200) estimate_time(J = J, N = 100, R = 1000, H_0 = 0.5, C = 1) # should be 200 again
Run the code above in your browser using DataLab