prob_association_m {BeviMed}R Documentation

Calculate probability of association for one mode of inheritance

Description

Equivalent to prob_association where the prior probability of one mode of inheritance is 1. This function is faster, as it only calls bevimed_m once.

Usage

prob_association_m(y, min_ac = 1L, prior_prob_association = 0.01, ...)

Arguments

y

Logical vector of case (TRUE) control (FALSE) status.

min_ac

Numeric vector of length the same as y or length 1 (in which case it is repeated to make it the same length as y) giving the minimum number of alleles at pathogenic variant sites each individual requires in order to classify as having a ‘pathogenic allele configuration’. If For example, 1 could correspond to hypothesis of dominant inheritance hypothesis. If there are differences in ploidy between individuals in the locus, it is necessary to set it on an sample level basis - e.g. to incorporate information about gender if the locus lies on the X chromosome.

prior_prob_association

The prior probability of association.

...

Other arguments to pass to log_BF.

Value

Probability value.

See Also

log_BF, prob_association, bevimed_m


[Package BeviMed version 5.3 Index]