From aea8d6bbee67a8c553113d8397bf67ae434ce11c Mon Sep 17 00:00:00 2001 From: Lukas Burk Date: Wed, 20 Nov 2024 16:59:45 +0100 Subject: [PATCH] Fix math rendering in README --- README.Rmd | 4 ++-- README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.Rmd b/README.Rmd index aa11527..77217c5 100644 --- a/README.Rmd +++ b/README.Rmd @@ -31,9 +31,9 @@ pak::pak("bips-hb/wflsa") The problem solved by the wFLSA algorithm is formulated as follows: -```math +$$ \hat{\beta} = \underset{\beta}{\arg\min} \left( \frac{1}{2} \| y - \beta \|_2^2 + \lambda_1 \| \beta \|_1 + \lambda_2 \sum_{i < j} w_{ij} | \beta_i - \beta_j | \right) -``` +$$ Where: - $y$ is the response variable with mean 0. diff --git a/README.md b/README.md index f4f1e94..caa8f88 100644 --- a/README.md +++ b/README.md @@ -22,9 +22,9 @@ pak::pak("bips-hb/wflsa") The problem solved by the wFLSA algorithm is formulated as follows: -``` math +$$ \hat{\beta} = \underset{\beta}{\arg\min} \left( \frac{1}{2} \| y - \beta \|_2^2 + \lambda_1 \| \beta \|_1 + \lambda_2 \sum_{i < j} w_{ij} | \beta_i - \beta_j | \right) -``` +$$ Where: - $y$ is the response variable with mean 0. - $\beta$ is the vector of coefficients to be estimated. - $|| \cdot ||_1$ and