p.value {lestat}R Documentation

Compute the p-value for a Distribution

Description

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.

Usage

p.value(object, point)

Arguments

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.

Value

The probability outside the smallest credibility interval or region containing the point.

Author(s)

Petter Mostad <mostad@chalmers.se>

See Also

credibilityinterval

Examples

data <- simulate(normal(3, log(2)), 10)
posterior <- linearmodel(data, designOneGroup(10))
p.value(marginal(posterior, 1))

[Package lestat version 1.9 Index]