View source: R/computeRelatedness.R
inferRelatedness | R Documentation |
This function infers the relatedness coefficient between two groups based on the observed correlation between their additive genetic variance and shared environmental variance.
inferRelatedness(obsR, aceA = 0.9, aceC = 0, sharedC = 0)
obsR |
Numeric. Observed correlation between the two groups. Must be between -1 and 1. |
aceA |
Numeric. Proportion of variance attributable to additive genetic variance. Must be between 0 and 1. Default is 0.9. |
aceC |
Numeric. Proportion of variance attributable to shared environmental variance. Must be between 0 and 1. Default is 0. |
sharedC |
Numeric. Proportion of shared environment shared between the two individuals. Must be between 0 (no shared environment) and 1 (completely shared environment). Default is 0. |
The function uses the ACE (Additive genetic, Common environmental, and Unique environmental) model to infer the relatedness between two individuals or groups. By considering the observed correlation ('obsR'), the proportion of variance attributable to additive genetic variance ('aceA'), and the proportion of shared environmental variance ('aceC'), it calculates the relatedness coefficient.
Numeric. The calculated relatedness coefficient ('est_r').
## Not run:
# Infer the relatedness coefficient:
inferRelatedness(obsR = 0.5, aceA = 0.9, aceC = 0, sharedC = 0)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.