Calculate conditional multivariate normal values
cond_mvn.Rd
Calculate conditional multivariate normal values
Examples
mu <- c(1, 2, 3)
Sigma <- matrix(c(0.2, 0.05, 0.1,
0.05, 0.3, 0.05,
0.1, 0.05, 0.4), nrow = 3)
i <- 1:2 # Index of the known parameter
xi <- c(1.2,2.3) # Known value of the first parameter
cond_mvn(mu, Sigma, i, xi,full_output = TRUE)
#> $mean
#> [1] 1.200000 2.300000 3.121739
#>
#> $covariance
#> [,1] [,2] [,3]
#> [1,] 0 0 0.0000000
#> [2,] 0 0 0.0000000
#> [3,] 0 0 0.3478261
#>