calc_conditional_gaussian_integral: Calculate the conditional multivariate Gaussian integral over...

Description Usage Arguments Value

View source: R/gaussian_integral.R

Description

Calculate the multiviarate Gaussian integral over a rectangular domain where some of the variables are known, and thus conditioned on. In particular, there are two types of variables, dependent and given, and the integral is over dependent variables. The known variables are provided as a vector ygiv, with length K. The bounds of the integral over dependent variables are lo and hi, each of which have length J. The multivariate Gaussian density is specified by a mean vector, mean_vect, of length J+K, and a covariance matrix, cov_mat, with dimensions (J+K) by (J+K). Edge case, such as J=0 and K>0, for which which no integral is needed, are handled.

Usage

1
2
3
4
5
6
7
8
calc_conditional_gaussian_integral(
  mean_vect,
  cov_mat,
  lo = c(),
  hi = c(),
  y_giv = c(),
  log = FALSE
)

Arguments

mean_vect

The vector of means [length J+K]

cov_mat

The covariance matrix [dimension (J+K) by (J+K)]

lo

The lower limit of integration for the dependent variables [length J]

hi

The upper limit of integration for the dependent variables [length J]

y_giv

The known values of the conditioned variables [length K]

log

Whether to return the logarithm of the integral (default FALSE)

Value

The value of the integral


MichaelHoltonPrice/yada documentation built on Sept. 19, 2021, 11:27 p.m.