{ "cells": [ { "cell_type": "markdown", "id": "intro", "metadata": {}, "source": [ "# Interpret statement response functions\n", "\n", "Compare how forced-choice statements relate to one trait. An overlay makes\n", "differences in slopes and locations easy to see. A separate panel for each\n", "statement makes overlapping curves easier to read.\n", "\n", "The six plotted forced-choice models come from a joint simulation with\n", "128 respondents and three traits. Each curve evaluates its response function\n", "at the posterior mean parameters." ] }, { "cell_type": "markdown", "id": "interpret-scale", "metadata": {}, "source": [ "## Keep utility and endorsement separate\n", "\n", "The horizontal axis is the score $\\theta$ on the trait assigned to\n", "statement $j$. Let $a_j>0$ be the statement's discrimination and let\n", "$q_j\\in\\{-1,+1\\}$ be the keying sign for a dominance model.\n", "\n", "Four models show **utility** on the vertical axis:\n", "\n", "$$\n", "\\begin{aligned}\n", "m_j(\\theta)&=\\nu_j+q_j a_j\\theta &&\\text{(TIRT)},\\\\\n", "m_j(\\theta)&=\\alpha_j+q_j a_j\\theta &&\\text{(TIRTRank)},\\\\\n", "u_j(\\theta)&=q_j a_j\\theta-b_j &&\\text{(MGPPM)},\\\\\n", "m_j(\\theta)&=-a_j|\\theta-\\delta_j| &&\\text{(GTUM)}.\n", "\\end{aligned}\n", "$$\n", "\n", "A positive keying sign gives an increasing line, and negative keying gives\n", "a decreasing line. The statement effect $\\nu_j$, the ranking intercept\n", "$\\alpha_j$ and the subtractive intercept $b_j$ shift their respective\n", "curves vertically. GTUM utility is highest at the ideal point $\\delta_j$.\n", "\n", "2PLM-RANK and GGUM-RANK show **statement endorsement probability**.\n", "For 2PLM-RANK the log endorsement odds are $\\ell_j=q_j a_j\\theta-b_j$.\n", "For GGUM-RANK, with $x_j=a_j(\\theta-\\delta_j)$ and statement threshold\n", "$\\tau_j$, they are\n", "\n", "$$\n", "\\ell_j=\\log(e^{x_j}+e^{2x_j})-a_j\\tau_j-\\log(1+e^{3x_j}).\n", "$$\n", "\n", "Both probabilities are $e_j(\\theta)=1/(1+e^{-\\ell_j})$. Increasing $\\tau_j$\n", "lowers the GGUM-RANK curve. Moving equally far above or below $\\delta_j$\n", "gives the same endorsement probability. In a forced-choice block, the\n", "successive-choice models use the odds $e^{\\ell_j}$ relative to the other\n", "available statements. The plotted curves describe one statement at a time.\n", "\n", "Each curve uses the statement's posterior mean parameters. The next cells\n", "load those estimates and evaluate the functions over a grid of trait scores." ] }, { "cell_type": "markdown", "id": "read-fitted-estimates", "metadata": {}, "source": [ "## Read the fitted estimates\n", "\n", "Save the [statement parameters](../_static/gallery/statement_curves_parameters.csv)\n", "and [posterior mean scores](../_static/gallery/statement_curves_scores.csv)\n", "in the notebook's working directory. Each parameter row identifies a\n", "model, statement and trait. Each score row contains a fitted respondent\n", "score for one trait." ] }, { "cell_type": "code", "execution_count": 1, "id": "read-estimates", "metadata": { "execution": { "iopub.execute_input": "2026-11-15T06:57:38.434733Z", "iopub.status.busy": "2026-11-15T06:57:38.434733Z", "iopub.status.idle": "2026-11-15T06:57:41.226589Z", "shell.execute_reply": "2026-11-15T06:57:41.226078Z" } }, "outputs": [ { "data": { "text/html": [ "
| \n", " | model | \n", "statement | \n", "trait | \n", "loading_magnitude | \n", "location | \n", "
|---|---|---|---|---|---|
| 40 | \n", "GTUM | \n", "GTUM_B1|S1 | \n", "agency | \n", "0.98 | \n", "2.43 | \n", "
| 41 | \n", "GTUM | \n", "GTUM_B1|S2 | \n", "communion | \n", "0.91 | \n", "-2.08 | \n", "
| 42 | \n", "GTUM | \n", "GTUM_B2|S1 | \n", "agency | \n", "0.93 | \n", "-2.48 | \n", "