Skip to content

Commit

Permalink
add brms center=FALSE slide
Browse files Browse the repository at this point in the history
  • Loading branch information
avehtari committed Oct 9, 2024
1 parent 3cbb348 commit 61f61e0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Binary file modified slides/BDA_lecture_7.pdf
Binary file not shown.
14 changes: 13 additions & 1 deletion slides/BDA_lecture_7.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1519,7 +1519,7 @@

\vspace{-0.75\baselineskip}
\begin{minted}[fontsize=\footnotesize]{r}
fit_lin <- brm(temp ~ year, data = data_lin, family = gaussian())
fit_lin <- brm(temp ~ year, data = data_lin)
\end{minted}
\pause
\begin{minted}[fontsize=\scriptsize,highlightlines={5,6,11,16,21}]{r}
Expand Down Expand Up @@ -1549,6 +1549,18 @@

\end{frame}

\begin{frame}[fragile,fragile]{brms covariate centering by default}

Sometimes we want to turn off the covariate centering, which can be
done with additional argument for brms formula function
\rinline/bf()/

\begin{minted}[fontsize=\footnotesize]{r}
fit_lin <- brm(bf(temp ~ year, center=FALSE), data = data_lin)
\end{minted}

\end{frame}

\begin{frame}[fragile]{brms formulas}

\begin{tabular}[t]{lll}
Expand Down

0 comments on commit 61f61e0

Please sign in to comment.