Skip to content

Commit e13f2ed

Browse files
committed
replace std by confidence interval radius in tables
1 parent 5353ba1 commit e13f2ed

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

examples/CO24/table.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,18 @@ end
5353
end
5454

5555
## Exact recovery
56+
factor = quantile(Normal(), 0.975) / sqrt(metadata(df_mean_bands, "Number of simulations"))
5657
df_er = @chain df_mean_bands begin
57-
# value of interest is PER ± standard error
58+
# value of interest is PER ± standard confidence interval radius
5859
@rselect(
5960
:N = :parameter,
6061
:T = :T,
6162
:method = :method,
6263
:clustering = :clustering,
63-
:er = string(round_percent(:er_mean)) * " ± " * string(round_percent(:er_std)),
64+
:er =
65+
string(round_percent(:er_mean)) *
66+
" ± " *
67+
string(round_percent(factor * :er_std)),
6468
)
6569
# create a column with the combination of clustering and method to be able to unstack both at the same time
6670
@rtransform!(:col_name = string(:clustering, "_", :method))

0 commit comments

Comments
 (0)