Skip to content

Commit

Permalink
Format table
Browse files Browse the repository at this point in the history
  • Loading branch information
WGUNDERWOOD committed Jul 26, 2024
1 parent cc564a1 commit b7af50b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions replication/debiasing/debiasing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,17 @@ end
function run_all()
# tables format is (d, n, B)
tables = [
(1, 1000, 500), # good
(2, 1000, 500), # good
#(1, 1000, 501), # medium test
#(1, 1000, 600), # good
#(2, 1000, 600), # good
(1, 200, 200), # medium test
#(2, 1000, 200), # medium test
#(1, 10, 10), # small test
]
n_reps = 2000
#lifetime_methods = [opt::LifetimeMethod, pol::LifetimeMethod]
lifetime_methods = [opt::LifetimeMethod]
#lifetime_multipliers = [0.8, 0.9, 1.0, 1.1, 1.2]
lifetime_multipliers = [1.0]
lifetime_methods = [opt::LifetimeMethod, pol::LifetimeMethod]
#lifetime_methods = [opt::LifetimeMethod]
lifetime_multipliers = [0.8, 0.9, 1.0, 1.1, 1.2]
#lifetime_multipliers = [1.0]
X_dist = Uniform(0, 1)
mu = (x -> sum(sin.(pi .* x)))
sigma = 0.3
Expand Down
4 changes: 2 additions & 2 deletions replication/debiasing/tables.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function make_table(df)
d = df[1, "d"]
n = df[1, "n"]
B = df[1, "B"]
tex = "\\begin{tabular}{ccccccccccccccccc}\n"
tex = "\\begin{tabular}{|cc|cc|cccc|cc|cc|cc|}\n"
tex *= "%\$d=$d\$, & \$n=$n\$, & \$B=$B\$&&&&&&&&&&\\\\\n"
tex *= "\\hline\n"
tex *= "\$J\$ & LS & LM & \$\\lambda\$ & RMSE & Bias & SD & Bias/SD & "
Expand Down Expand Up @@ -78,7 +78,7 @@ function make_table(df)

tex *= "\\\\\n"
end
tex *= "\\hline\\n"
tex *= "\\hline\n"
tex *= "\\end{tabular}"
write("./replication/debiasing/table_d$(d)_n$(n)_b$B.tex", tex)
end
Expand Down

0 comments on commit b7af50b

Please sign in to comment.