Skip to content

Instantly share code, notes, and snippets.

@jebyrnes
Created February 22, 2024 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jebyrnes/800881335d01356a3a61e6f1020fb00d to your computer and use it in GitHub Desktop.
Save jebyrnes/800881335d01356a3a61e6f1020fb00d to your computer and use it in GitHub Desktop.
---
title: "test"
format: revealjs
---
# DAG Before You Model
[Which of these is your model?]{.center}
::: {.columns}
::: {.column width="50%"}
```{dot}
//| fig-width: 50%
//| fig-height: 50%
digraph {
layout = neato
m [
shape = none
pos = "-1,1!"
]
d [
shape = none
pos = "0,0!"
]
a [
shape = none
pos = "1,1!"
]
m -> d
a -> d
}
```
:::
::: {.column width="50%"}
```{dot}
//| fig-width: 50%
//| fig-height: 50%
digraph {
layout = neato
m [
shape = none
pos = "-1,1!"
]
d [
shape = none
pos = "0,0!"
]
a [
shape = none
pos = "1,1!"
]
m -> d
a -> d
a -> m
}
```
:::
:::
::: {.columns}
::: {.column width="50%"}
```{dot}
//| fig-width: 50%
//| fig-height: 50%
digraph {
layout = neato
m [
shape = none
pos = "-1,1!"
]
d [
shape = none
pos = "0,0!"
]
a [
shape = none
pos = "1,1!"
]
m -> d
a -> d
a -> m
}
```
:::
::: {.column width="50%"}
```{dot}
//| fig-width: 30%
//| fig-height: 10%
digraph {
layout = neato
m [
shape = none
pos = "-1,1!"
]
d [
shape = none
pos = "0,0.5!"
]
a [
shape = none
pos = "1,1!"
]
u [
shape = circle
pos = "0,1.5!"
]
m -> d
a -> d
u -> a
u -> m
}
```
:::
:::
# Cols 2
# DAG Before You Model
[Which of these is your model?]{.center}
::: {layout-ncol=2}
###
```{dot}
//| fig-width: 50%
//| fig-height: 50%
digraph {
layout = neato
m [
shape = none
pos = "-1,1!"
]
d [
shape = none
pos = "0,0!"
]
a [
shape = none
pos = "1,1!"
]
m -> d
a -> d
}
```
###
```{dot}
//| fig-width: 50%
//| fig-height: 50%
digraph {
layout = neato
m [
shape = none
pos = "-1,1!"
]
d [
shape = none
pos = "0,0!"
]
a [
shape = none
pos = "1,1!"
]
m -> d
a -> d
a -> m
}
```
###
```{dot}
//| fig-width: 50%
//| fig-height: 50%
digraph {
layout = neato
m [
shape = none
pos = "-1,1!"
]
d [
shape = none
pos = "0,0!"
]
a [
shape = none
pos = "1,1!"
]
m -> d
a -> d
a -> m
}
```
###
```{dot}
//| fig-width: 30%
//| fig-height: 10%
digraph {
layout = neato
m [
shape = none
pos = "-1,1!"
]
d [
shape = none
pos = "0,0.5!"
]
a [
shape = none
pos = "1,1!"
]
u [
shape = circle
pos = "0,1.5!"
]
m -> d
a -> d
u -> a
u -> m
}
```
:::
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment