Description Usage Arguments Details Value See Also Examples
Functions for manipulating MangroveSample objects
1 2 3 4 5 6 |
x |
A |
object |
A |
... |
Further arguments to be passed on to downstream methods. |
MangroveSample objects are produced from a MangroveTree object via a call to tree$getPrevs. They contain samples from the posterior distribution of number of affecteds in a family conditional on that family's genotypes.
The print method writes all the samples to screen. You can plot the distribution of number of affecteds using the plot method (which calls plotSampledPrev), and perform a significance test for whether the observed number of affecteds is greater than would be expected using the summary method.
You can see a detailed example of how these methods are applied by calling vignette("Mangrove")
None of the methods return anything.
MangroveTree to generate MangroveSample objects. plotSampledPrev for more on plotting expected distributions.
1 2 3 4 5 6 7 8 | data(famped)
data(exampleORs)
tree <- initialiseTree()
tree$addPed(famped,exampleORs)
sam <- tree$getPrevs(exampleORs,0.02)
summary(sam)
plot(sam)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.