Skip to content

Commit

Permalink
fixed error in which the treatment levels for the dicitonary were not…
Browse files Browse the repository at this point in the history
… sorted
  • Loading branch information
joshua-slaughter committed Jul 30, 2024
1 parent 3e44f07 commit aa7c1fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/counterfactual_mean_based/estimands.jl
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ Dictionary to avoid compilation bottlenecks.
function unique_treatment_values_dict(dataset, treatments)
sorted_dict = Dict{Symbol, Vector{UInt8}}()
for colname in keys(treatments)
sorted_dict[colname] = get_treatment_values(dataset, colname)
sorted_dict[colname] = sort(get_treatment_values(dataset, colname))
end
return sorted_dict
end
Expand Down

0 comments on commit aa7c1fb

Please sign in to comment.