![]() |
Helpful Stan Functions
|
Functions | |
matrix | angle2chol (matrix angle_mat) |
matrix | angle_vec2angle_mat (vector angle, int K) |
matrix angle2chol | ( | matrix | angle_mat | ) |
Angles matrix to Cholesky correlation
Copyright 2021, Sean Pinkney
Peter J. Rousseeuw & Geert Molenberghs (1993) Transformation of non positive semidefinite correlation matrices, Communications in Statistics - Theory and Methods, 22:4, 965-984, DOI: 10.1080/03610928308831068
angle_mat | Matrix of angles |
Cholesky | factor of correlation matrix |
matrix angle_vec2angle_mat | ( | vector | angle, |
int | K | ||
) |
Angle svector to angle matrix
Copyright 2021, Sean Pinkney
angle | Vector of angles length of the number of elements of the lower triangle elemements n/ of the output angle matrix. If the size of the output matrix is K x K then the n/ length is K * (K - 1) / 2 |
angle | matrix |