Formatting

First, for anything regarding

revisit the DAPR1 formatting resources.

LaTeX symbols and equations

Anything you’ve seen that’s written between two dollar signs is LaTeX code (specifically using what’s called “math mode”).

By embedding LaTeX (pronounced “lay-teck”) into RMarkdown, you can accurately and precisely format mathematical expressions, ensuring that they are not only technically correct but also visually appealing and easy to interpret.

For an overview of how to integrate LaTeX symbols and equations, review Lesson 9 of the RMD bootcamp.

APA formatting

APA format is a writing/presentation style that is often used in Psychology to ensure consistency in communication. APA formatting applies to all aspects of writing: from formatting papers (including tables and figures) to citing sources. This means that it also applies to how you present results in your Psychology courses, including DAPR2.

All results should be presented following APA guidelines.

You should also follow APA style rules for tables and figures.

APA formatting for regression coefficients

The APA has official guidelines on how to report regression coefficient estimates. Use this template structure:

\(b\) = (coefficient estimate), 95% CI [(lower bound), (upper bound)], \(p\) = (p-value)

(Tip: use confint(mdl) to get each coefficient’s 95% CI.)

Here’s an example of how to include this information in a sentence:

The slope was significantly different from zero (\(b\) = 0.54, 95% CI [0.32, 0.76], \(p\) = .041). I therefore reject the H0 that this estimate is equal to zero.

All values should be reported to two decimal places, except the p-value.

When reporting the p-value, you should report exact p-values to three decimal places, with no zero in front of the decimal, for example: \(p\) = .041 or \(p\) = .222. However, if \(p\) is smaller than .001, just write \(p\) < .001.