Description Usage Arguments Value Author(s) See Also Examples
The p-value of a distribution is here interpreted as the probability outside the smallest credibility interval or region containing a point; if no point is explicitly given, it is assumed to be zero, or the origin.
1 | p.value(object, point)
|
object |
The probability distribution for which the p-value should be computed. |
point |
The point which should be included in the credibility interval or region. |
The probability outside the smallest credibility interval or region
containing the point
.
Petter Mostad <mostad@chalmers.se>
1 2 3 | data <- simulate(normal(3, log(2)), 10)
posterior <- linearmodel(data, designOneGroup(10))
p.value(marginal(posterior, 1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.