calculate_aa_prob: Calculates an amino acid typing probability.

Description Usage Arguments Value Examples

Description

Function returns the probability (density) for a certain type of amino acid based on a chi-squared statistics with 2 degrees of freedom.

Usage

1
calculate_aa_prob(chi_squared_stat, df = 2)

Arguments

chi_squared_stat

a single or a vector of chi-squared statistics

df

degrees of freedom, default is 2

Value

Input can be a single value or a vector of values, the output will be probability density for each value.

Examples

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)

BaMORC documentation built on May 1, 2019, 6:35 p.m.