Hostname: page-component-89b8bd64d-mmrw7 Total loading time: 0 Render date: 2026-05-08T03:06:46.978Z Has data issue: false hasContentIssue false

TEMAP2.R: True and Error model analysis program in R

Published online by Cambridge University Press:  01 January 2023

Michael H. Birnbaum*
Affiliation:
Dept. of Psychology CSUF H-830M, California State University, Fullerton, Fullerton, CA, 92834–6846
Edika G. Quispe-Torreblanca*
Affiliation:
University of Warwick, Coventry, UK
Rights & Permissions [Opens in a new window]

Abstract

True and Error Theory (TET) provides a method to separate the variability of behavior into components due to changing true policy and to random error. TET is a testable theory that can serve as a statistical model, allowing one to evaluate substantive theories as nested, special cases. TET is more accurate descriptively and has theoretical advantages over previous approaches. This paper presents a freely available computer program in R that can be used to fit and evaluate both TET and substantive theories that are special cases of it. The program performs Monte Carlo simulations to generate distributions of test statistics and bootstrapping to provide confidence intervals on parameter estimates. Use of the program is illustrated by a reanalysis of previously published data testing whether what appeared to be violations of Expected Utility (EU) theory (Allais paradoxes) by previous methods might actually be consistent with EU theory.

Information

Type
Research Article
Creative Commons
Creative Common License - CCCreative Common License - BY
The authors license this article under the terms of the Creative Commons Attribution 3.0 License.
Copyright
Copyright © The Authors [2018] This is an Open Access article, distributed under the terms of the Creative Commons Attribution license (http://creativecommons.org/licenses/by/3.0/), which permits unrestricted re-use, distribution, and reproduction in any medium, provided the original work is properly cited.
Figure 0

Table 1: Four examples of hypothetical data for a 2-choice study. Each entry is the percentage of participants with each combination of preferences on Problem 1 (Rows) and Problem 2 (Columns).

Figure 1

Figure 1: True and Error model with 2 choice problems and 4 error terms. A true preference for the “Safe” or “Risky” alternative (S or R, respectively) may result in an overt response that contains error. The probabilities of error given a true preference for R or R in Choice Problems 1 and 2 are denoted e and e, respectively. The probabilities of error given a true preference for S or S are denoted f and f, respectively. From Birnbaum (2018).

Figure 2

Table 2: Data used to illustrate the model and program. From Birnbaum, Schmidt & Schneider (2017, Experiment 2, Sample 2).

Figure 3

Table 3: Parameter estimates and index of fit of six models to the data of Table 2. TE-4, TE-2, and TE-1 are True and Error models with 4, 2, and 1 error rate parameters. EU-4, EU-2, and EU-1 are their respective special cases in which violations of EU are assumed to have zero probability. Entries shown in parentheses are either fixed or constrained.

Figure 4

Table 4: Best-fit predictions of EU-4 for data of Table 2, minimizing χ2.

Figure 5

Table 5: Best-fit (min. χ2) predictions of TE-2 for data of Table 2. Predictions of TE-4 are similar and slightly more accurate.

Figure 6

Table 6: Best-fit predictions of response independence for data of Table 2 (Birnbaum, et al., 2017, Experiment 2, Sample 2). This property does not impose EU, nor does it imply symmetry in the table.

Figure 7

Figure 2: Histogram of Monte Carlo simulated χ2 values for the data of Table 2, based on TE-2, using 10000 simulated samples, using the re-fit method. The vertical line at 9.11 shows the empirical value for the original data.

Figure 8

Figure 3: Histogram of simulated differences in χ2 between EU-4 and TE-4, using 10000 simulations via the re-fit method. None of the simulated samples yielded a value as great as that observed in the empirical data, shown as the vertical line at 40.28.

Figure 9

Figure 4: Bootstrapped density function for the parameter, pRS based on TE-2, estimated from 10,000 samples from the data of Table 2.

Figure 10

Table A.1. Parameter estimates and index of fit of six models to the data of Table 2, as in Table 3, based on minimization of the G index. As in Table 3, entries shown in parentheses are either fixed or constrained.

Supplementary material: File

Birnbaum and Quispe-Torreblanca supplementary material

Birnbaum and Quispe-Torreblanca supplementary material 1
Download Birnbaum and Quispe-Torreblanca supplementary material(File)
File 132.5 KB
Supplementary material: File

Birnbaum and Quispe-Torreblanca supplementary material

Birnbaum and Quispe-Torreblanca supplementary material 2
Download Birnbaum and Quispe-Torreblanca supplementary material(File)
File 156.6 KB
Supplementary material: File

Birnbaum and Quispe-Torreblanca supplementary material

Birnbaum and Quispe-Torreblanca supplementary material 3
Download Birnbaum and Quispe-Torreblanca supplementary material(File)
File 330.5 KB