Description Usage Arguments Value See Also Examples
View source: R/momApp_modalityTest.R
Test if the moments generated by momApp
come from a unimodal distribution with compact support.
The test used is given by function is.unimodal
from package momcalc. The lower and upper bounds of
the compact support may depend on a time value t
.
1 | modalityTest(momApp, lower, upper, vars = names(init(momApp$model)))
|
momApp |
an object of class |
lower |
numeric vector or matrix or data.frame specifying the lower
bounds of the compact distribution that determines the law of the PDMP
|
upper |
numeric vector or matrix or data.frame specifying the upper
bounds of the compact distribution that determines the law of the PDMP
|
vars |
a character vector specifiying the names of the variables
on which a modality test should be performed. The variables should be
part of the PDMP |
A data.frame containing the test results.
plotModalities
to plot the result.
1 2 3 4 | data(genePolyBF)
support <- getSupport(genePolyBF)
modalityTest(momApp = momApp(genePolyBF), vars = "f",
lower = support$lower, upper = support$upper)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.