knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(tidyverse)
knitr::read_chunk("external_code.R")
source("external_code.R")

Plotting and Cross Reference

library(tidyverse)
data(diamonds)
ggplot(data=diamonds) + aes(x = carat , y = price) + geom_point()

We can see in Figure \@ref(fig:diamond-plot) a scatterplot.

This is a function used from external code.

res = sqrt_function(9)
res

Citation

This paper develops a generalization of the widely used difference‐in‐differences method for evaluating the effects of policy changes.[@athey2006identification]

Some people say that [@vadrevu2018intercomparison] while others [@athey2006identification]



XiaoluQianUW/DATA-598-WI20-week-5 documentation built on Feb. 25, 2020, 3 a.m.