Description Usage Arguments Value Author(s)
View source: R/simul.replace.similar.R
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 by replacing fathers with the most similar individual from the same generation.
1 | simul.replace.similar(pedigree, lambda, B, data, model)
|
pedigree |
A dataset containing the initial pedigree structure. It must have three columns: id, parent1, parent2. |
lambda |
A vector of real numbers specifying the error proportion to be generated. |
B |
An integer specifying the number of simulations to be run for each error level. |
data |
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) |
model |
A object of class model used to calculate heritability. |
A list:
inb |
A dataset containing all the simulated values for inbreeding depression |
se_inb |
A dataset containing all the simulated standard errors for inbreeding depression |
pval |
A dataset containing all the simulated p-values for inbreeding depression |
mean_inb |
A dataset containing all the simulated values for inbreeding coefficient mean |
median_inb |
A dataset containing all the simulated values for inbreeding coefficient median |
var_inb |
A dataset containing all the simulated values for inbreeding coefficient variance |
Erica Ponzi
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.