In my work, I now largely use:
.Rmd for things R and mathy;
MS Word for mostly text and images.R with
#' comments) and.Rmd` works loverly!But still old-school on tools that work very well for me.
\bibliography{graphics, statistics, Rpackages}. Cite with
BibTeX keys: \cite{Agresti:90}@BOOK{Agresti:90,
title = {Categorical Data Analysis},
publisher = {Wiley-Interscience},
year = {1990},
author = {A. Agresti},
address = {New York},
isbn = {0-471-85301-1},
lccn = {QA278 .A353 1990}
}
@book{FriendlyMeyer:2016:DDAR,
Author = {Michael Friendly and Meyer, David},
Title = {Discrete Data Analysis with {R}: Visualization and Modeling Techniques for Categorical and Count Data},
Address = {Boca Raton, FL},
Isbn = {978-1-4987-2583-5},
Publisher = {Chapman \& Hall/CRC},
Year = {2016}
}Methods for categorical data analysis are described by
\cite{Agresti:90,FriendlyMeyer:2016:DDAR}…
bibliographystyle{apa}.csl style
files: csl: apa.csl in YAML headerMethods for categorical data analysis are described by [@Agresti:90,@FriendlyMeyer:2016:DDAR] …
citet("10.1098/rspb.2013.1372") will create a citation to
@Boettiger_2013\begin{equation} \label{eq:linreg}
y = \mathbf{X} \beta + \epsilon
\end{equation}
Renders as: \[y = \mathbf{X} \beta + \epsilon\]
y = \mathbf{X} \beta + \epsilon in the equation
window.\begin{tabular}{llrr}
Model & Model symbol & df & \(G^2\) \\ \hline
Marginal & [Hair] [Eye] & 9 & 146.44 \\
Joint & [Hair, Eye] [Sex] & 15 & 19.86 \\ \hline
Mutual & [Hair] [Eye] [Sex] & 24 & 166.30
\end{tabular}
xtable package generates tables in LaTeX or
HTML, for data, model summaries, etc. knitr::kable() does
as well, with fancier stuff in kableExtra.