Skip to content

Commit

Permalink
up tmle
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierlabayle committed Mar 14, 2024
1 parent 6696024 commit 990c94f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ MLJModels = "0.16"
MLJXGBoostInterface = "0.3.4"
MultipleTesting = "0.6.0"
Optim = "1.7"
TMLE = "0.14.0"
TMLE = "0.15.0"
Tables = "1.10.1"
YAML = "0.4.9"
julia = "1.7, 1"
4 changes: 2 additions & 2 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ This explicitely requires that the following columns belong to the dataset:
All ATE parameters are generated.
"""
function TMLE.factorialATE(dataset)
function factorialATE(dataset)
colnames = names(dataset)
"T" colnames || throw(ArgumentError("No column 'T' found in the dataset for the treatment variable."))
"Y" colnames || throw(ArgumentError("No column 'Y' found in the dataset for the outcome variable."))
confounding_variables = Tuple(name for name in colnames if occursin(r"^W", name))
length(confounding_variables) > 0 || throw(ArgumentError("Could not find any confounding variable (starting with 'W') in the dataset."))

return [factorialATE(dataset, (:T, ), :Y; confounders=confounding_variables)]
return [factorialEstimand(ATE, dataset, (:T, ), :Y; confounders=confounding_variables)]
end

instantiate_config(file::AbstractString) = read_estimands_config(file)
Expand Down

0 comments on commit 990c94f

Please sign in to comment.