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

Integer vector with a length equalling the number of individuals or length 1 (in which case the given value is used for all individuals) giving the minimum number of alleles at pathogenic variant sites each individual requires in order to classify as having a ‘pathogenic allele configuration’. Thus, this parameter encodes the mode of inheritance. For instance, setting this parameter to 1 corresponds to dominant inheritance. 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 ensure sex is accounted for 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.10 Index]