MangroveSample {Mangrove} | R Documentation |
Functions for manipulating MangroveSample objects
## S3 method for class 'MangroveSample'
print(x,...)
## S3 method for class 'MangroveSample'
summary(object, ...)
## S3 method for class 'MangroveSample'
plot(x,...)
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.
data(famped)
data(exampleORs)
tree <- initialiseTree()
tree$addPed(famped,exampleORs)
sam <- tree$getPrevs(exampleORs,0.02)
summary(sam)
plot(sam)