Skip to content

Instantly share code, notes, and snippets.

@calvinmccarter
Last active February 14, 2025 15:58
Show Gist options
  • Save calvinmccarter/7d69dab1a06ab9c633cf5bd7c894ae56 to your computer and use it in GitHub Desktop.
Save calvinmccarter/7d69dab1a06ab9c633cf5bd7c894ae56 to your computer and use it in GitHub Desktop.
tabular imputation flow
\begin{table}[ht]
\centering
\begin{tabular}{rlllllllll}
\hline
& MinMAE & AvgMAE & W\_train & W\_test & MedianMAD & R2\_imp & F1\_imp & PercentBias & CoverageRate \\
\hline
KNN & 0.16 (0.03) & 0.16 (0.03) & 0.42 (0.08) & 1.89 (0.49) & 0 (0) & 0.59 (0.09) & 0.75 (0.04) & 1.27 (0.25) & 0.4 (0.11) \\
ICE & 0.1 (0.01) & 0.21 (0.03) & 0.52 (0.09) & 1.99 (0.49) & 0.69 (0.1) & 0.59 (0.09) & 0.74 (0.04) & 1.05 (0.29) & 0.39 (0.09) \\
MICE-Forest & 0.08 (0.02) & 0.13 (0.03) & 0.34 (0.07) & 1.86 (0.48) & 0.29 (0.08) & 0.61 (0.1) & 0.76 (0.04) & 0.61 (0.2) & 0.75 (0.11) \\
MissForest & 0.1 (0.03) & 0.12 (0.03) & 0.32 (0.07) & 1.85 (0.48) & 0.1 (0.03) & 0.61 (0.1) & 0.76 (0.04) & 0.62 (0.22) & 0.79 (0.08) \\
Softimpute & 0.22 (0.03) & 0.22 (0.03) & 0.53 (0.07) & 1.99 (0.48) & 0 (0) & 0.58 (0.09) & 0.74 (0.04) & 1.18 (0.34) & 0.31 (0.09) \\
OT & 0.14 (0.02) & 0.19 (0.03) & 0.56 (0.1) & 1.98 (0.49) & 0.28 (0.05) & 0.59 (0.1) & 0.75 (0.04) & 1.09 (0.27) & 0.39 (0.12) \\
GAIN & 0.16 (0.03) & 0.17 (0.03) & 0.49 (0.11) & 1.95 (0.51) & 0.01 (0) & 0.6 (0.1) & 0.75 (0.04) & 1.04 (0.25) & 0.54 (0.12) \\
Forest-VP & 0.14 (0.04) & 0.17 (0.03) & 0.55 (0.13) & 1.96 (0.5) & 0.25 (0.03) & 0.61 (0.1) & 0.74 (0.04) & 0.81 (0.25) & 0.57 (0.14) \\
utrees & 0.08 (0.02) & 0.14 (0.03) & 0.38 (0.08) & 1.87 (0.49) & 0.29 (0.07) & 0.61 (0.1) & 0.76 (0.04) & 0.62 (0.2) & 0.72 (0.13) \\
Oracle & 0 (0) & 0 (0) & 0 (0) & 1.87 (0.49) & 0 (0) & 0.64 (0.09) & 0.78 (0.04) & 0 (0) & 1 (0) \\
\hline
\end{tabular}
\end{table}
% latex table generated in R 4.4.1 by xtable 1.8-4 package
% Fri Feb 14 10:55:47 2025
\begin{table}[ht]
\centering
\begin{tabular}{rlllllllll}
\hline
& MinMAE & AvgMAE & W\_train & W\_test & MedianMAD & R2\_imp & F1\_imp & PercentBias & CoverageRate \\
\hline
KNN & 5.5 (0.5) & 6.3 (0.4) & 4.9 (0.4) & 5 (0.4) & 8.4 (0) & 6.5 (1) & 5.7 (1.1) & 6.2 (1) & 5.4 (0.6) \\
ICE & 6.8 (0.4) & 4.7 (0.4) & 7 (0.5) & 7.2 (0.4) & 1.6 (0.2) & 6.2 (1) & 7 (0.6) & 5.7 (0.9) & 5.2 (0.7) \\
MICE-Forest & 3.9 (0.4) & 2.5 (0.4) & 2.9 (0.2) & 2.9 (0.2) & 3.7 (0.2) & 3.7 (1.4) & 3.2 (1) & 5.5 (1.2) & 4.2 (0.6) \\
MissForest & 2.7 (0.5) & 4 (0.4) & 1.8 (0.3) & 1.9 (0.3) & 5.5 (0.2) & 3.7 (1.4) & 2.5 (0.5) & 5.5 (1.5) & 3.4 (0.5) \\
Softimpute & 6.7 (0.4) & 7.6 (0.4) & 7.1 (0.5) & 7.3 (0.5) & 8.4 (0) & 5.8 (1) & 7.8 (0.4) & 6.3 (0.9) & 6.7 (0.5) \\
OT & 5.9 (0.4) & 6.2 (0.3) & 6 (0.5) & 6 (0.5) & 3.7 (0.3) & 6.2 (0.5) & 6.8 (0.6) & 5.5 (0.8) & 4.8 (0.5) \\
GAIN & 4.6 (0.4) & 6.5 (0.3) & 5.9 (0.3) & 6 (0.2) & 6.9 (0.1) & 5.7 (0.8) & 5.4 (0.8) & 4.5 (1.1) & 5 (0.6) \\
Forest-VP & 5.2 (0.4) & 4 (0.5) & 5.7 (0.3) & 5 (0.4) & 3.2 (0.4) & 4.5 (0.9) & 4.6 (0.8) & 3.3 (0.6) & 5.4 (0.7) \\
utrees & 3.7 (0.5) & 3.2 (0.4) & 3.7 (0.5) & 3.8 (0.5) & 3.7 (0.2) & 2.8 (0.6) & 2.2 (0.6) & 2.5 (0.8) & 4.9 (0.6) \\
\hline
\end{tabular}
\end{table}
iris , MCAR(0.2) , utrees , 0.0638197797783635 , 0.08624623373692339 , 0.0 , 0.0 , 0.060062918545105454 , 0.24480224963380864 , 0.002111058520181239 , 0.11913073675920763 , 0.09292674251214719 , 0.0 , 0.9317496864605045 , 140.1014920870463 , 0.0 , 0.9665831244778612 , 0.0 , 0.8728912548924215 , 0.0 , 0.9525615385264508 , 0.0 , 0.9349628279452841
wine , MCAR(0.2) , utrees , 0.09482056569377315 , 0.13021683661974146 , 0.0 , 0.0 , 0.33564363205471526 , 1.4446787234536134 , 0.005324148638120522 , 0.22483684454232328 , 0.18373533734818076 , 0.0 , 0.951165767578112 , 2846.0253070195517 , 0.0 , 0.9378117563614641 , 0.0 , 0.8873979161720117 , 0.0 , 0.9979210394802599 , 0.0 , 0.9815323582987119
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment