Skip to content

Commit

Permalink
update paper
Browse files Browse the repository at this point in the history
  • Loading branch information
salbalkus committed Nov 26, 2024
1 parent 1f63771 commit 9595989
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
24 changes: 13 additions & 11 deletions paper/paper.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,14 @@ either by imposing a causal structure on an existing dataset, or by
drawing new data randomly from a programmatically-defined SCM.

Wrapping an existing dataset with causal structure is easy. The
`CausalTable` constructor creates a `Tables.jl`-compliant data
structure, coupled with causal structure about the data-generating
process. Calling convenience functions on this object allows users to
perform data processing tasks common in causal inference. For instance,
the `parents` function can be used to select only variables denoted as
causes of another given variable.
`CausalTable` constructor creates a `Tables.jl`-compliant data structure
that wraps any existing data that already satisfies the `Tables.jl`
interface with additional information about its causal structure.
Calling convenience functions on this object allows users to perform
data processing tasks common in causal inference, such as selecting or
intervening on specific variables. For example, the `parents` function
can be used to select only variables denoted as causes of another given
variable.

:::: {.cell execution_count="1"}
``` {.julia .cell-code}
Expand Down Expand Up @@ -193,7 +195,7 @@ ate(scm) # average treatment effect
```

::: {.cell-output .cell-output-display execution_count="1"}
(μ = 0.998, eff_bound = 2.002)
(μ = 0.999, eff_bound = 1.997)
:::
::::

Expand Down Expand Up @@ -232,7 +234,7 @@ mean(y .* (2 * a .- 1) ./ propensity(scm, ct, :A))
```

::: {.cell-output .cell-output-display execution_count="1"}
0.941
1.002
:::
::::

Expand All @@ -249,7 +251,7 @@ mean(y_treated .- y_untreated)
```

::: {.cell-output .cell-output-display execution_count="1"}
1.059
0.919
:::
::::

Expand Down Expand Up @@ -295,7 +297,7 @@ ape(scm, additive_mtp(1)) # average policy effect
```

::: {.cell-output .cell-output-display execution_count="1"}
(μ = 2.500, eff_bound = 5.236)
(μ = 2.498, eff_bound = 5.237)
:::
::::

Expand All @@ -316,7 +318,7 @@ mean(conmean(scm, ct_intervened, :Y) .- responsematrix(ct))
```

::: {.cell-output .cell-output-display execution_count="1"}
2.481
2.464
:::
::::

Expand Down
10 changes: 6 additions & 4 deletions paper/paper.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,13 @@ structure on an existing dataset, or by drawing new data randomly from a
programmatically-defined SCM.

Wrapping an existing dataset with causal structure is easy. The `CausalTable`
constructor creates a `Tables.jl`-compliant data structure, coupled with causal
structure about the data-generating process. Calling convenience functions on
constructor creates a `Tables.jl`-compliant data structure that wraps any
existing data that already satisfies the `Tables.jl` interface with
additional information about its causal structure. Calling convenience functions on
this object allows users to perform data processing tasks common in causal
inference. For instance, the `parents` function can be used to select
only variables denoted as causes of another given variable.
inference, such as selecting or intervening on specific variables. For example,
the `parents` function can be used to select only variables denoted as causes
of another given variable.

```{julia}
#| echo: false
Expand Down

0 comments on commit 9595989

Please sign in to comment.