Description Usage Arguments Value Examples
Function returns the probability (density) for a certain type of amino acid based on a chi-squared statistics with 2 degrees of freedom.
1 | calculate_aa_prob(chi_squared_stat, df = 2)
|
chi_squared_stat |
a single or a vector of chi-squared statistics |
df |
degrees of freedom, default is 2 |
Input can be a single value or a vector of values, the output will be probability density for each value.
1 2 3 4 | # Find density for a chi square parameter with 3 degrees of freedom
calculate_aa_prob(0.314, df=3)
# Find density for a list of (chi square statistics) with 2 degrees of freedom
calculate_aa_prob(c(0.05, 0.1, 0.5), 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.