Simulates n_rep populations with simulate_breeding(), fits each with model()
and the given formula, and reports the estimated heritability against the simulated
one. Each replicate gets its own seed (seed + rep), and every fit starts cold from
var(y) like any other fit, the harness never warm-starts, by the package's own
rule.
Arguments
- n_rep
number of replicates
- formula
passed to
model(); the additive term must be namedanimalfor the heritability slice (the componentvar(animal))- h2
simulated heritability, passed to
simulate_breeding()- seed
base seed; replicate r uses
seed + r- ...
other arguments for
simulate_breeding()(population size and depth)