![]() |
Helpful Stan Functions
|
Functions | |
vector | corr_constrain_lp (vector x) |
matrix | cholesky_corr_constrain_lp (vector y, int K) |
Original code is in Stan-math https://github.com/stan-dev/math/blob/develop/stan/math/prim/fun/cholesky_corr_constrain.hpp#L48
matrix cholesky_corr_constrain_lp | ( | vector | y, |
int | K | ||
) |
Cholesky Correlation Matrix Constraint
See https://mc-stan.org/docs/2_27/reference-manual/cholesky-factors-of-correlation-matrices-1.html
y | Vector |
K | Int |
vector corr_constrain_lp | ( | vector | x | ) |
Correlation Constraint
See https://mc-stan.org/docs/2_27/reference-manual/cholesky-factors-of-correlation-matrices-1.html
x | Vector |