toc: true (table of content)
toc-title: Contents
toc-location: left
number-sections: true
embed-resources: true (to have an automomous file outside of the folder)
execute: you can specify defoult cunck settings
cache: ture (saves chunks output to compile faster)
results: hide
echo: false (it does not show the chunk code)
code-fold: true (nice pop up window with code)
Example of an r chunk:
```{r}
#| results: hide
#| echo: false
#| label: fig-name_figure
#| fig-width: 8
#| fig-height: 4
#| fig-cap: Caption of you figure.
```
Content 1:
Item 1
Item 2
Item 3
Content 2:
Item 1
Item 2
Item 3
I love Quarto!
Hoe to insert images:
I liked this article a lot and it was written by Scheel et al. (2021), (Scheel et al., 2021).
References are then automatically listed in full at the end of the document.
To create a .bib file, open a new text file and save it with the .bib extension.
Remember to include the following entry in the YAML header:
bibliography: "file name"
csl: "apa.csl"
The CSL (Citation Style Language) file provided in the folder allows you to format citations correctly according to APA style.
```{r}
library(readxl)
DATA <- read_xls(path = "data/Sara_dataset.xls")
cor_pre <- cor(DATA$anx_pre, DATA$mathquiz, use = "complete.obs")
cor_pre
```[1] -0.05491077
Correlations:
- Correlation between math and anxiety -> $r =$ `\r cor_pre\`
- `\r cor(DATA$anx_pre, DATA$mathquiz, use = "complete.obs")`
Welch Two Sample t-test
data: Holz$t01_visperc[Holz$female == 1] and Holz$t01_visperc[Holz$female == 2]
t = 1.4095, df = 298.9, p-value = 0.1597
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
-0.06419229 0.38823118
sample estimates:
mean of x mean of y
4.314090 4.152071
|== Effect Size and Critical Value ==|
d = 0.1623665 dc = ± 0.2269609 bc = ± 0.2262117
g = 0.1619587 gc = ± 0.2263909
$dz
[1] -0.7619393
$dzc
[1] 0.3734061
$d
[1] -1.077545
$dc
[1] 0.528076
$bc
[1] 2.450367
$se
[1] 1.198089
$df
[1] 29
$g
[1] -1.049394
$gc
[1] 0.51428
$gz
[1] -0.7420336
$gzc
[1] 0.3636509
#| echo: true
#| results: hide
library(criticalESvalue)
library(psych)
library(psychTools)
data("holzinger.swineford")
Holz <- holzinger.swineford
tt <- t.test(Holz$t01_visperc [ Holz$female == 1], Holz$t01_visperc [ Holz$female == 2])
critical(tt)#| echo: false
#| results: markup
library(criticalESvalue)
library(psych)
library(psychTools)
data("holzinger.swineford")
Holz <- holzinger.swineford
tt <- t.test(Holz$t01_visperc [ Holz$female == 1], Holz$t01_visperc [ Holz$female == 2])
critical(tt)#| echo: true
#| results: hide
m1 <- 10
m2 <- 15
sd1 <- 5
sd2 <- 4.25
n <- 30
critical_t2sp(m1 = m1, m2 = m2, sd1 = sd1, sd2 = sd2, n = n).bib file.Extra:
fig-cap.label.gender: 1 = female, 2 = male)major: 1 = psychology, 2 = medicine, 3 = biology, 4 = sociology, 5 = economics)cond: 1 = easy, …, 4 = impossible)phobia), measured on a 0–10 scaleprevmath)mathquiz)statquiz)hr base), before the test (hr pre), and after the test (hr post)anx base), before the test (anx pre), and after the test (anx post)CSS (Cascading Style Sheets) is a language used to format documents written in HTML (also applicable to Reveal.js presentations).
CSS files have the .css extension and contain style rules that can be applied to HTML elements.
It separates content from presentation and formatting, improving code maintainability.
How to include it in a Quarto file:
format:
html:
css: stile.css
A .css file is like a text document where you define the formatting settings for your HTML file. Here’s a very brief example:
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
}
h1 {
color: darkred;
text-align: center;
}