Calculate the error in the estimate of the onset of hybridization, following Equations 3 & 4 in the Supplementary information of Janzen et al. 2018.
time_error(t = NA, N = Inf, R = Inf, H_0 = 0.5, C = 1, relative = TRUE)
Expected error in the time estimate
Inferred time
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)
Boolean flag, if TRUE: return the relative error, if FALSE: return error in generations