Skip to content

Commit 0a08e8a

Browse files
committed
consistent names for covariance and correlation matrices, fixes #716
1 parent 519679d commit 0a08e8a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/reference-manual/types.qmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -837,10 +837,10 @@ definite. Like correlation matrices, covariance matrices only need a
837837
single dimension in their declaration. For instance,
838838

839839
```stan
840-
cov_matrix[K] Omega;
840+
cov_matrix[K] Sigma;
841841
```
842842

843-
declares `Omega` to be a $K \times K$ covariance matrix, where
843+
declares `Sigma` to be a $K \times K$ covariance matrix, where
844844
$K$ is the value of the data variable `K`.
845845

846846

@@ -853,10 +853,10 @@ Because correlation matrices are square, only one dimension needs
853853
to be declared. For example,
854854

855855
```stan
856-
corr_matrix[3] Sigma;
856+
corr_matrix[3] Omega;
857857
```
858858

859-
declares `Sigma` to be a $3 \times 3$ correlation matrix.
859+
declares `Omega` to be a $3 \times 3$ correlation matrix.
860860

861861
Correlation matrices may be assigned to other matrices, including
862862
unconstrained matrices, if their dimensions match, and vice-versa.

0 commit comments

Comments
 (0)