This function is a convenience wrapper around the gfit from the R package abc

goodness_of_fit(model, replicates, ...)

Arguments

replicates

Number of replicates to be used to approximate the null distribution of the goodness-of-fit statistic (passed as nb.replicate to the underlying function abc::gfit))

...

Other optional arguments to be passed to abc::gfit

models

An object of the class demografr_sims_abc or demografr_abc.abc produced by functions simulate_abc or run_anc, respectively, which store simulated summary statistics needed for the goodness-of-fit procedure.

Value

Object of the class gfit and demografr_gfit