'Could not convert Tex math in Rmarkdown

I am trying to write an algebraic equation in Rmarkdown but its rending as text as opposed to an algebraic equation. The warning below for reference;

[WARNING] Could not convert TeX math 'Y_{ij}|b_{0i}=\large\beta_{0}+\large b_{0i}+\beta_{1}X_{ij}', rendering as TeX:



Solution 1:[1]

You can run the following code:

---
title: "Test"
author: "Author"
date: '2022-05-14'
output: word_document
---

$$
Y_{ij}|b_{0i}=\beta_{0}+b_{0i}+\beta_{1}X_{ij}
$$

Output:

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1