Skip to content

Commit

Permalink
add tags to all equations
Browse files Browse the repository at this point in the history
  • Loading branch information
andybeet committed Aug 13, 2024
1 parent c5bd4d1 commit c58cd4e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions vignettes/Equations.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ library(arfit)
\begin{align}
\tag{2}
\mathrm{L}\left( \underline{\theta}; \underline{y} \right )= \prod^n_{t=2} p\left(Y_t = y_t | Y_{t-1}=y_{t-1}\right) p\left(Y_1=y_1 \right)
\end{equation}
\end{align}

---

Expand All @@ -49,13 +49,15 @@ logL\left( \underline{\theta}; \underline{y} \right ) = & -\frac{n}{2}log2\pi -

---

\begin{equation}
\begin{align}
\tag{4}
\hat\sigma^2 = \frac{1}{n}\left( (1-\phi^2)(y_1-\beta_0-\beta_1)^2 + \sum^n_{t=2}(y_t - \phi y_{t-1}-\beta_0(1-\phi^2) - t\beta_1 + \phi(t-1)\beta_1)^2 \right)
\end{equation}
\end{align}

---

\begin{align}
\tag{5}
logL\left( \underline{\beta}, \phi; \underline{y} \right ) &= const. + \frac{1}{2}log(1-\phi^2) \notag \\
&-\frac{n}{2}log\left( (1-\phi^2)(y_1-\beta_0-\beta_1)^2 + \sum^n_{t=2}(y_t - \phi y_{t-1}-\beta_0(1-\phi^2)-t\beta_1 + \phi(t-1)\beta_1)^2 \right) \\

Expand All @@ -66,6 +68,7 @@ logL\left( \underline{\beta}, \phi; \underline{y} \right ) &= const. + \frac{1}{
---

\begin{align}
\tag{6}
logL\left( \underline{\beta}, \underline{\phi},\sigma; \underline{y} \right ) &= -\frac{n}{2}log(2\pi) -\frac{n}{2}log(\sigma^2) +\frac{1}{2}log \left|V_p^{-1} \right|
\\
&-\frac{1 }{2 \sigma^2} (\underline{y_p}-\underline{\mu_p})^T V_p^{-1}(\underline{y_p}-\underline{\mu_p}) \\
Expand Down

0 comments on commit c58cd4e

Please sign in to comment.