conditional: Draw Conditional Samples

conditionalR Documentation

Draw Conditional Samples

Description

Sample from a conditional distribution.

Usage

cond_mvnorm(y, mu, Q, which, a = -Inf, b = Inf, params.only = FALSE)

Arguments

y

A vector of values drawn from the multivariate normal distribution. Element which is ignored.

mu

the mean of the normal distribution from which y comes

Q

the precision of the multivariate normal distribution from which y comes

which

Which index to get the conditional distribution of

a, b

optional limits of truncation for a truncated normal distribution.

params.only

Should just a list of the updated parameters be returned?


eheinzen/gibbs.utils documentation built on Sept. 27, 2024, 9:03 p.m.