The function generates increasing amount of errors to the pedigree structure and calculates inbreeding depression for each simulation. For each level of the error proportion, a number of simulation equal to B are repeated. Errors are generated with the same probability across the all pedigree by replacing fathers with other individuals from the same generation.
simul.replace.uni(pedigree, lambda, B, data, model)
A dataset containing the initial pedigree structure. It must have three columns: id, parent1, parent2.
A vector of real numbers specifying the error proportion to be generated.
An integer specifying the number of simulations to be run for each error level.
A dataset containing the phenotypic measurements on the population and the covariates which are included in the model. The trait shoul be named differently than 'trait' (see MCMCglmm)
A object of class model used to calculate inbreeding depression.
A list:
A dataset containing all the simulated values for inbreeding depression
A dataset containing all the simulated standard errors for inbreeding depression
A dataset containing all the simulated p-values for inbreeding depression
A dataset containing all the simulated values for inbreeding coefficient mean
A dataset containing all the simulated values for inbreeding coefficient median
A dataset containing all the simulated values for inbreeding coefficient variance