powered by
Given a multivariate distribution, one of its marginal distributions is computed.
marginal(object, v)
The multivariate probability distribution whose marginal should be computed.
A vector of indices, indicating which parts of the object should be kept after marginalisation.
object
A probability distribution.
The index or indices of the parameter(s) whose marginal distribution is computed is given in v.
v
conditional
# NOT RUN { data <- simulate(normal(3, log(3)), 11) posterior <- linearmodel(data, designOneGroup(11)) credibilityinterval(marginal(posterior, 1)) credibilityinterval(marginal(posterior, 2)) # }
Run the code above in your browser using DataLab