plot_prob_phen: Plot the probability of association, given 'p' and...

View source: R/fwd.plot.prob.phen.R

plot_prob_phenR Documentation

Plot the probability of association, given p and n.snps.assoc.

Description

[*For use with the 'fwd.-.sim' functions:*] Plot the cumulative probability of association (Pr(phen=1)), with a given value of p, as the number of associated sites (SNPi=1) increases from i=0 to i=n.snps.assoc.

Usage

plot_prob_phen(p = 0.5, n.snps.assoc = 10)

Arguments

p

A numeric value indicating the probability of substitution, at each site, along the tree.

n.snps.assoc

An integer specifying the number of genetic loci that are associated with the phenotype.

Author(s)

Caitlin Collins caitiecollins@gmail.com

Examples

## Not run: 
## basic use of fn ##
## compare probability of having phenotype with 10 SNPs at varying p:
plot_prob_phen(p=0.8, n.snps.assoc=10)
plot_prob_phen(p=0.5, n.snps.assoc=10)
plot_prob_phen(p=0.2, n.snps.assoc=10)

## End(Not run)

caitiecollins/treeWAS documentation built on March 9, 2024, 3:15 p.m.