A Tutorial on Quarto

Author

SZhang

Introduction

Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see https://quarto.org.

Running Code

When you click the Render button a document will be generated that includes both content and the output of embedded code. You can embed code like this:

1 + 1
[1] 2

You can add options to executable code like this

[1] 4

The echo: false option disables the printing of code (only output is displayed).

Descriptive Statistics

x=c(17, 18, 16, 18, 17, 16, 18, 17, 18, 16, 17)
T=table(x)
barplot(T)

Inferential Statistics

t.test(x, mu=17)

    One Sample t-test

data:  x
t = 0.36274, df = 10, p-value = 0.7244
alternative hypothesis: true mean is not equal to 17
95 percent confidence interval:
 16.53250 17.64932
sample estimates:
mean of x 
 17.09091