---
title: "Supplementary Materials: Predicting similarity judgments in intertemporal choice with machine learning"
author: "Jeffrey R. Stevens and Leen-Kiat Soh"
date: \today
output: pdf_document
header-includes:
- \usepackage{rotating}
bibliography: "r-references.bib"
csl               : "APA_no_initials_DOI.csl"

---

```{r include = FALSE}
source("stevens_soh_2018_rcode.R")

suppressPackageStartupMessages(library(xtable))       
# needed for creating LaTeX readable tables (xtable)
# Dahl, D. B. (2016). xtable: Export tables to LaTeX or HTML. (R package version 1.8-2). Retrieved from http://CRAN.R-project.org/package=xtable
# r_refs(file = "../manuscript/r-references.bib") # creates a BibTeX file containing citations for R and all currently loaded packages
my_citation <- cite_r(file = "../manuscript/r-references.bib")  # takes these citations and turns them into readily reportable text

## Generate tables using xtable for LaTeX
amount_data1_xtable <- xtable(amount_data1_stimuli, caption = '\\textit{Amount Questions and Mean Ratings for Experiment 1}')	# create xtable for import into LaTeX
delay_data1_xtable <- xtable(delay_data1_stimuli, caption = '\\textit{Delay Questions and Mean Ratings for Experiment 1}')	# create xtable for import into LaTeX
amount_data2_xtable <- xtable(amount_data2_stimuli, caption = '\\textit{Amount Questions and Mean Ratings for Experiment 2}')	# create xtable for import into LaTeX
delay_data2_xtable <- xtable(delay_data2_stimuli, caption = '\\textit{Delay Questions and Mean Ratings for Experiment 2}')	# create xtable for import into LaTeX
```

# R packages
This project used `r my_citation`.


\renewcommand{\thetable}{S\arabic{table}}
\setcounter{table}{0}
\renewcommand{\thefigure}{S\arabic{figure}}
\setcounter{figure}{0}


<!--(Table S1)-->
```{r message=FALSE, results='asis', prompt=FALSE, echo=FALSE}
align(amount_data1_xtable) <- "cccc"
print(amount_data1_xtable, include.rownames = FALSE, size = "small", caption.placement = "top", comment = FALSE)
```

<!--(Table S2)-->
```{r message=FALSE, results='asis', prompt=FALSE, echo=FALSE}
align(delay_data1_xtable) <- "cccc"
print(delay_data1_xtable, include.rownames = FALSE, size = "small", caption.placement = "top", comment = FALSE)
```

<!--(Table S3)-->
```{r message=FALSE, results='asis', prompt=FALSE, echo=FALSE}
align(amount_data2_xtable) <- "cccc"
print(amount_data2_xtable, include.rownames = FALSE, size = "small", caption.placement = "top", comment = FALSE)
```

<!--(Table S4)-->
```{r message=FALSE, results='asis', prompt=FALSE, echo=FALSE}
align(delay_data2_xtable) <- "cccc"
print(delay_data2_xtable, include.rownames = FALSE, size = "small", caption.placement = "top", comment = FALSE)
```

\clearpage
\newpage
<!--(Figure S1)-->
\begin{sidewaysfigure}[ht]
 \centering
 \includegraphics[width=9in]{figures/similarity_descriptives.png} 
 \caption{{\small Attribute effects on similarity judgments. Dots represent mean proportion of pairs judged as similar for each attribute value.}}
 \label{fig:SIM_ATTRIBUTE}
\end{sidewaysfigure}

\clearpage
\newpage

\begin{figure}
\vspace{-1cm}
 \includegraphics[width=1in]{figures/trees/tree_amount_2-1.png} 
 \includegraphics[width=1in]{figures/trees/tree_amount_2-2.png} 
 \includegraphics[width=1in]{figures/trees/tree_amount_2-5.png} 
 \includegraphics[width=1in]{figures/trees/tree_amount_2-6.png} 
 \includegraphics[width=1in]{figures/trees/tree_amount_2-8.png}
 \includegraphics[width=1in]{figures/trees/tree_amount_2-10.png}  \\
 \includegraphics[width=1in]{figures/trees/tree_amount_2-14.png} 
 \includegraphics[width=1in]{figures/trees/tree_amount_2-15.png} 
 \includegraphics[width=1in]{figures/trees/tree_amount_2-17.png} 
 \includegraphics[width=1in]{figures/trees/tree_amount_2-20.png} 
 \includegraphics[width=1in]{figures/trees/tree_amount_2-21.png} 
 \includegraphics[width=1in]{figures/trees/tree_amount_2-22.png} \\
 \includegraphics[width=1in]{figures/trees/tree_amount_2-24.png} 
 \includegraphics[width=1in]{figures/trees/tree_amount_2-25.png} 
 \includegraphics[width=1in]{figures/trees/tree_amount_2-27.png} 
 \includegraphics[width=1in]{figures/trees/tree_amount_2-28.png} 
 \includegraphics[width=1in]{figures/trees/tree_amount_2-32.png} 
 \includegraphics[width=1in]{figures/trees/tree_amount_2-33.png} \\
 \includegraphics[width=1in]{figures/trees/tree_amount_2-101.png} 
 \includegraphics[width=1in]{figures/trees/tree_amount_2-102.png} 
 \includegraphics[width=1in]{figures/trees/tree_amount_2-103.png} 
 \includegraphics[width=1in]{figures/trees/tree_amount_2-104.png} 
 \includegraphics[width=1in]{figures/trees/tree_amount_2-105.png} 
 \includegraphics[width=1in]{figures/trees/tree_amount_2-107.png} \\
 \includegraphics[width=1in]{figures/trees/tree_amount_2-109.png} 
 \includegraphics[width=1in]{figures/trees/tree_amount_2-110.png} 
 \includegraphics[width=1in]{figures/trees/tree_amount_2-113.png} 
 \includegraphics[width=1in]{figures/trees/tree_amount_2-115.png}
 \includegraphics[width=1in]{figures/trees/tree_amount_2-119.png} 
 \includegraphics[width=1in]{figures/trees/tree_amount_2-120.png}  \\
 \includegraphics[width=1in]{figures/trees/tree_amount_2-123.png} 
 \includegraphics[width=1in]{figures/trees/tree_amount_2-127.png} 
 \includegraphics[width=1in]{figures/trees/tree_amount_2-128.png} 
 \includegraphics[width=1in]{figures/trees/tree_amount_2-130.png}
 \includegraphics[width=1in]{figures/trees/tree_amount_2-132.png} 
 \includegraphics[width=1in]{figures/trees/tree_amount_2-133.png}  \\
 \includegraphics[width=1in]{figures/trees/tree_amount_2-134.png} 
 \includegraphics[width=1in]{figures/trees/tree_amount_2-135.png} 
 \includegraphics[width=1in]{figures/trees/tree_amount_2-137.png}
 \includegraphics[width=1in]{figures/trees/tree_amount_2-143.png} 
 \includegraphics[width=1in]{figures/trees/tree_amount_2-144.png}  
 \includegraphics[width=1in]{figures/trees/tree_amount_2-145.png} \\
 \includegraphics[width=1in]{figures/trees/tree_amount_2-146.png} 
 \includegraphics[width=1in]{figures/trees/tree_amount_2-147.png} 
 \includegraphics[width=1in]{figures/trees/tree_amount_2-148.png}
 \includegraphics[width=1in]{figures/trees/tree_amount_2-149.png} 
 \includegraphics[width=1in]{figures/trees/tree_amount_2-152.png}  
 \includegraphics[width=1in]{figures/trees/tree_amount_2-153.png} \\
 \includegraphics[width=1in]{figures/trees/tree_amount_2-154.png} 
 \includegraphics[width=1in]{figures/trees/tree_amount_2-155.png} 
 \includegraphics[width=1in]{figures/trees/tree_amount_2-156.png}
\caption{{\small Amount judgment trees for participants with at least two nodes.}} 
\end{figure}

\clearpage
\newpage

\begin{figure}
\vspace{-1cm}
 \includegraphics[width=1in]{figures/trees/tree_delay_2-1.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-4.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-5.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-8.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-10.png}
 \includegraphics[width=1in]{figures/trees/tree_delay_2-11.png}  \\
 \includegraphics[width=1in]{figures/trees/tree_delay_2-13.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-14.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-15.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-16.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-17.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-21.png} \\
 \includegraphics[width=1in]{figures/trees/tree_delay_2-23.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-25.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-27.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-28.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-32.png}
 \includegraphics[width=1in]{figures/trees/tree_delay_2-33.png}  \\
 \includegraphics[width=1in]{figures/trees/tree_delay_2-101.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-103.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-104.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-105.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-107.png}
 \includegraphics[width=1in]{figures/trees/tree_delay_2-108.png}  \\
 \includegraphics[width=1in]{figures/trees/tree_delay_2-109.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-110.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-114.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-115.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-116.png}
 \includegraphics[width=1in]{figures/trees/tree_delay_2-117.png}  \\
 \includegraphics[width=1in]{figures/trees/tree_delay_2-119.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-120.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-125.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-127.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-128.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-130.png} \\
 \includegraphics[width=1in]{figures/trees/tree_delay_2-131.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-132.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-133.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-134.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-137.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-141.png} \\
 \includegraphics[width=1in]{figures/trees/tree_delay_2-144.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-145.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-146.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-147.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-148.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-149.png} \\
 \includegraphics[width=1in]{figures/trees/tree_delay_2-151.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-153.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-154.png} 
 \includegraphics[width=1in]{figures/trees/tree_delay_2-155.png} 
\caption{{\small Delay judgment trees for participants with at least two nodes.}} 
\end{figure}

\clearpage
\newpage

# References


