View source: R/conditionedProp.R
conditionedProp | R Documentation |
This function calculates the conditioned proportions for pigmentation traits for UP, when UP is MP. It considers error rates for observations of hair color, skin color, and eye color.
conditionedProp(data, h, s, y, eh, es, ey)
data |
A data.frame containing the characteristics of UPs. |
h |
An integer representing the MP's hair color. |
s |
An integer representing the MP's skin color. |
y |
An integer representing the MP's eye color. |
eh |
A numeric value representing the error rate for observing hair color. |
es |
A numeric value representing the error rate for observing skin color. |
ey |
A numeric value representing the error rate for observing eye color. |
A numeric vector containing the conditioned proportion (numerator) for each individual in the dataset. These values are calculated based on the probability of observing the given combination of characteristics in the MP, compared to each UP.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.