From 0762d2785f3d7936d3e0c37b1eb8c6e1ab1026f8 Mon Sep 17 00:00:00 2001 From: Rasmus Henningsson Date: Fri, 6 Dec 2024 13:51:18 +0100 Subject: [PATCH 1/2] Fix issue with \times in docstring MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaced \times with × that will work in both docstring and docs. --- src/contrasts.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/contrasts.jl b/src/contrasts.jl index 02c78de3..41c77ba8 100644 --- a/src/contrasts.jl +++ b/src/contrasts.jl @@ -471,7 +471,7 @@ end HypothesisCoding(hypotheses::AbstractMatrix; levels=nothing, labels=nothing) Specify how to code a categorical variable in terms of a *hypothesis matrix*. -For a variable with ``k`` levels, this should be a ``k-1 \times k`` matrix. +For a variable with ``k`` levels, this should be a ``k-1×k`` matrix. Each row of the matrix corresponds to a hypothesis about the mean outcomes under each of the ``k`` levels of the predictor. The entries in the row give the weights assigned to each of these ``k`` means, and the From 7eb64d990a79b6e314b0936721c0bf9ff9d59c29 Mon Sep 17 00:00:00 2001 From: Milan Bouchet-Valat Date: Fri, 1 Aug 2025 09:09:19 +0200 Subject: [PATCH 2/2] Update src/contrasts.jl Co-authored-by: Ajinkya Kokandakar --- src/contrasts.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/contrasts.jl b/src/contrasts.jl index 41c77ba8..2d8bbffe 100644 --- a/src/contrasts.jl +++ b/src/contrasts.jl @@ -471,7 +471,7 @@ end HypothesisCoding(hypotheses::AbstractMatrix; levels=nothing, labels=nothing) Specify how to code a categorical variable in terms of a *hypothesis matrix*. -For a variable with ``k`` levels, this should be a ``k-1×k`` matrix. +For a variable with ``k`` levels, this should be a ``(k-1) × k`` matrix. Each row of the matrix corresponds to a hypothesis about the mean outcomes under each of the ``k`` levels of the predictor. The entries in the row give the weights assigned to each of these ``k`` means, and the