Description Usage Arguments Value
View source: R/gaussian_integral.R
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.
1 2 3 4 5 6 7 8 |
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) |
The value of the integral
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.