Pular para o conteúdo

Tarefa paper_repro.lmb_2004.tab1_c3.design

paper_reproagentT3designépoca 1, tentativa 1Execução: 20261015T165911Z-suite-paper_repro-baseline-8b4f85

Veredito

falhouDecidida pela verificação 5: argumento igual, argumentos errados.
infer.rdd.y = 'rownames'

Família do método (das chamadas de ferramentas): rd (regression discontinuity)

Pergunta feita ao analista

How large is the incumbent party's advantage in U.S. House elections? Comparing seats the Democratic Party barely won with seats it barely lost, estimate the effect of winning a House election on the probability that the same party wins the seat's next election.

Resposta

Estimativa (infer.rdd): effect = 279,2 (IC 95%: -207,4 a 765,7).

Valores esperados e de onde vêm

lmb_2004.tab1_c3.software

Fonte
statsmodels 0.15.0: the reference specification of lmb_2004 tab1_c3 (infer.ols, figure 'coef.lagdemocrat') on an independent code path
Tipo
software
Localização
lmb_2004: Table I (results based on ADA scores, close elections sample), column (3) 'DEM_t+1', row 'Estimated gap'
Valor
0,4843290.4843287147634966 (se 0,02893220.02893215206729024)
Conferido por
execução de software · sm.OLS(democrat, add_constant(['lagdemocrat'])).fit(cov_type='HC1') on lmb (the file pinned at sha256 58cf9d8ef80b2871a96c00844fae975051a5aac443dff3d317fe92ffd6a516b7, rows where lagdemvoteshare > 0.48 and lagdemvoteshare < 0.52); n_obs = 915. The tool infer.ols (magi_infer, numpy) does not call statsmodels. Written by scripts/paper_repro_reference.py.
Implementação
independente da ferramenta
Endereço
https://pypi.org/project/statsmodels/0.15.0/
  • #12 figura da resposta próxima: 0,4843290.4843287147634966 · relativa 0.000001 · absoluta 2.8932152067290236e-8
  • #13 figura da resposta próxima: 0,02893220.02893215206729024 · relativa 0.000001 · absoluta 2.8932152067290236e-8

lmb_2004.tab1_c3.paper

Fonte
Lee, D. S., Moretti, E. and Butler, M. J. (2004). Do Voters Affect or Elect Policies? Evidence from the U.S. House. Quarterly Journal of Economics 119(3): 807-859.
Tipo
paper
Localização
Table I (results based on ADA scores, close elections sample), column (3) DEM_t+1, row 'Estimated gap'
Página
832
Trecho
Estimated gap 0.48 (0.02)
Valor como publicado
0.48
Erro-padrão como publicado
0.02
Valor
0,480.48 (se 0,020.02) probability of a Democratic win at t+1
Conferido por
fonte primária · Read on 2026-10-15 from the published QJE version (53 pages, typeset pages 807-859) on Enrico Moretti's Berkeley page, from the text layer and the rendered image of page 832 (Table I). Table notes: 'Standard errors are in parentheses'; the sample keeps elections with the Democrat vote share at time t strictly between 48 and 52 percent; sample size 915. Data check made before any estimate: in the causaldata extract, rows with 0.48 < lagdemvoteshare < 0.52 number 915, as printed, with no missing outcome or treatment, no share exactly at 0.48, 0.50 or 0.52, lagdemocrat equal to (lagdemvoteshare > 0.5) on every row of the window, and id unique within the window.
sha256 da cópia lida
00983018486cc68079d100de58d46e279f50295ddda3c12c94e075e88340e24d (identifica a cópia lida, não um arquivo canônico)
Desvio conhecido
convenção de erro-padrão
Recorded before this track's software-reference run and before any dry run, from the paper and the research probe: Table I does not state how its standard errors were computed, and the research note (research-papers.md section 3.13, 2026-10-14) already reported a statsmodels error of 0.029 for this regression on this extract (the Mixtape prints 0.03), against the printed 0.02. The printed cell is recorded and non-required on T1; the reference keeps HC1.
Endereço
https://eml.berkeley.edu/~moretti/final.pdf
Licença
Copyright the President and Fellows of Harvard College and MIT (QJE); cited, not reproduced.
  • #14 figura da resposta próxima: 0,480.48 · published_cell d=2 · absoluta 0.0050000010000000004
  • #15 figura da resposta próxima: 0,020.02 · published_cell d=2 (the SE as printed) · absoluta 0.0050000010000000004

Verificações

Cada verificação, o que esperava, o que observou e a chamada que leu
#VerificaçãoObrigatóriaResultadoEsperadoObservadoTolerânciaFonteChamada
0resposta com lastro
every number backed
obrigatóriapassou—[]———
1figura da resposta escolhida
answer figure call_965d46cf:effect (infer.rdd)
obrigatóriapassou—"call_965d46cf:effect"——call_965d46cf
2uma entre
tool_called(infer.ols): answer call is infer.rdd | tool_called(infer.rdd): ok
obrigatóriapassou[{"abs_tol":null,"bind":"answer_call","column":null,"failure_class":null,"field":"value","interval":false,"key":null,"kind":"tool_called","min_lre":null,"note":"","open_interval":false,"rel_tol":null,"required":true,"source_id":null,"table":null,"tool":"infer.ols","value":null,"weight":1,"where":null},{"abs_tol":null,"bind":"answer_call","column":null,"failure_class":null,"field":"value","interval":false,"key":null,"kind":"tool_called","min_lre":null,"note":"","open_interval":false,"rel_tol":null,"required":true,"source_id":null,"table":null,"tool":"infer.rdd","value":null,"weight":1,"where":null}]"infer.rdd"——call_965d46cf
3argumento igual
not applicable: the answer call is infer.rdd, not infer.ols
obrigatóriapassou"democrat"———call_965d46cf
4argumento igual
not applicable: the answer call is infer.rdd, not infer.ols
obrigatóriapassou"lagdemocrat"———call_965d46cf
5argumento igual
infer.rdd.y = 'rownames'
obrigatóriafalhou"democrat""rownames"——call_965d46cf
6argumento igual
infer.rdd.running = 'score'
obrigatóriafalhou"lagdemvoteshare""score"——call_965d46cf
7argumento igual
not applicable: the answer call is infer.rdd, not infer.ols
registradapassou"democrat"———call_965d46cf
8argumento igual
not applicable: the answer call is infer.rdd, not infer.ols
registradapassou["lagdemocrat"]———call_965d46cf
9argumento igual
not applicable: the answer call is infer.rdd, not infer.ols
registradapassou[]———call_965d46cf
10argumento igual
not applicable: the answer call is infer.rdd, not infer.ols
registradapassou[]———call_965d46cf
11diagnóstico
not applicable: the answer call is infer.rdd, not infer.ols
registradapassou915915—default rel 1e-6 (abs floor 1e-6)—call_965d46cf
12figura da resposta próxima
279.1647313 vs 0.4843287147634966
registradafalhou0,4843290.4843287147634966279,165279.16473129771043relativa 0.000001 · absoluta 2.8932152067290236e-8lmb_2004.tab1_c3.softwarecall_965d46cf
13figura da resposta próxima
248.2599067 vs 0.02893215206729024
registradafalhou0,02893220.02893215206729024248,26248.25990671589568relativa 0.000001 · absoluta 2.8932152067290236e-8lmb_2004.tab1_c3.softwarecall_965d46cf
14figura da resposta próxima
279.1647313 vs 0.48
registradafalhou0,480.48279,165279.16473129771043published_cell d=2 · absoluta 0.0050000010000000004lmb_2004.tab1_c3.papercall_965d46cf
15figura da resposta próxima
248.2599067 vs 0.02
registradafalhou0,020.02248,26248.25990671589568published_cell d=2 (the SE as printed) · absoluta 0.0050000010000000004lmb_2004.tab1_c3.papercall_965d46cf

Caminho de referência e caminho do agente

A chamada de referência ao lado da chamada que deu a resposta, argumento por argumento.

a tarefa T1 do mesmo alvo (paper_repro.lmb_2004.tab1_c3.tool)

Referência: infer.olsChamada do agente: infer.rdd (call_965d46cf)diferente
Argumentos da referência e do agente
ArgumentoReferênciaAgente
bandwidth——não fixado pela referência
cluster——não fixado pela referência
controls[]—ausente
cutoff—00não fixado pela referência
dataset"lmb""lmb"igual
fe[]—ausente
kernel—"triangular"não fixado pela referência
level—0,950.95não fixado pela referência
polynomial—11não fixado pela referência
running—"score"não fixado pela referência
se"HC1"—ausente
subset"lagdemvoteshare > 0.48 and lagdemvoteshare < 0.52"—diferente
x["lagdemocrat"]—ausente
y"democrat""rownames"diferente

Trajetória

Cada evento na ordem em que aconteceu: turnos do modelo, chamadas de ferramentas, guardas, transformações e pontuação.

  1. 0Início

    How large is the incumbent party's advantage in U.S. House elections? Comparing seats the Democratic Party barely won with seats it barely lost, estimate the effect of winning a House election on the probability that the same party wins the seat's next election.

    lmb (agent)

    U.S. House elections and roll-call voting, the extract of the data of Lee, Moretti and Butler (2004), 'Do Voters Affect or Elect Policies? Evidence from the U.S. House', distributed with the causaldata R package: one row per district and congressional session (13,588 rows). Each row pairs a district's election with the one before it for the same seat. Columns: rownames, the row number; state, ICPSR state code; district, district code; id, an election identifier; score, the adjusted ADA voting score of the district's representative in the session that follows the row's election (0 to 100, higher means a more liberal roll-call record); year, year of the election; demvoteshare, the Democratic candidate's share of the two-party vote in the row's election; democrat, 1 if the Democratic candidate won the row's election; lagdemvoteshare, the Democratic share of the two-party vote in the previous election for the same seat; lagdemocrat, 1 if the Democratic candidate won that previous election. In the paper's notation the previous election is time t and the row's election, and the session after it, are time t+1.

    file 58cf9d8ef80b2871a96c00844fae975051a5aac443dff3d317fe92ffd6a516b7 · frame —
  2. 1Turno do modelo
    call_c50bb85drules-1Fim: tool_use0 ms0 de entrada · 0 de saída · 0 de raciocínio · 0 em cache
    Texto visível

    O tratamento muda num limiar da variável de corte: regressão descontínua.

    Chamadas pedidas
    • infer.rdd
      {
        "cutoff": 0,
        "dataset": "lmb",
        "running": "score",
        "y": "rownames"
      }
  3. 2Ferramenta
    infer.rddv0.1.0call_965d46cfdecidido pelo modeloreexecutável

    Motivo: O tratamento muda num limiar da variável de corte: regressão descontínua.

    Argumentos
    {
      "bandwidth": null,
      "cluster": null,
      "cutoff": 0,
      "dataset": "lmb",
      "kernel": "triangular",
      "level": 0.95,
      "polynomial": 1,
      "running": "score",
      "subset": null,
      "y": "rownames"
    }
    Figuras call_965d46cf
    ChaveValorValor brutoErro-padrãoIC
    effect
    Jump in rownames at the cutoff of score
    279,165 279.16473129771043248,26248.25990671589568-207,416 – 765,745
    Diagnósticos
    • bandwidth = 14,208614.208597376322317
    • bandwidth_method = "IK"
    • n_left = 758758
    • n_right = 3.1803180
    • kernel = "triangular"
    • polynomial = 11
    • bandwidth_sensitive = true
    • n_obs = 13.58813588
    • se_type = "HC1"
    Tabelas (1)
    {
      "sensitivity": [
        {
          "bandwidth": 7.104298688161158,
          "ci_high": 174.66283692489174,
          "ci_low": -1229.7032357853939,
          "estimate": -527.5201994302511,
          "multiplier": 0.5,
          "n_left": 575,
          "n_right": 1459,
          "se": 358.26323437260737
        },
        {
          "bandwidth": 14.208597376322317,
          "ci_high": 765.7452072661395,
          "ci_low": -207.4157446707186,
          "estimate": 279.16473129771043,
          "multiplier": 1,
          "n_left": 758,
          "n_right": 3180,
          "se": 248.25990671589568
        },
        {
          "bandwidth": 28.417194752644633,
          "ci_high": 878.4954784077543,
          "ci_low": 96.1918375711133,
          "estimate": 487.3436579894338,
          "multiplier": 2,
          "n_left": 819,
          "n_right": 5048,
          "se": 199.57092247800273
        }
      ]
    }
    Digests dos dados
    lmb 6f2fbc93d91c4156cab244ba7581cc8eae45210626f97f85ac8b2d366e4cbc20
    sha256 do resultado
    442557c486d2f7b0d28e4bf34840d89ed430cc39dc36c6d884dc04f747456548
  4. 3Turno do modelo
    call_15a0ba44rules-1Fim: tool_use0 ms0 de entrada · 0 de saída · 0 de raciocínio · 0 em cache
    Chamadas pedidas
    • submit_answer (meta-ferramenta)
      {
        "answer": "Estimativa (infer.rdd): effect = 279,2 (IC 95%: -207,4 a 765,7).",
        "caveats": [],
        "figure_refs": [
          "call_965d46cf:effect"
        ]
      }
  5. 4Guarda
    resposta aceita
    Números encontrados
    279,2 · 95% · -207,4 · 765,7
    Sem lastro
    —
    Não citados
    —
    1 nova(s) tentativa(s) restante(s)
  6. 5Resposta

    Estimativa (infer.rdd): effect = 279,2 (IC 95%: -207,4 a 765,7).

    Figuras citadas: call_965d46cf:effect · Parada: answered
    Figura da resposta: call_965d46cf:effect = 279,165279.16473129771043 (se 248,26248.25990671589568)
  7. 6Pontuação
    #0resposta com lastropassouobrigatóriaevery number backed
  8. 7Pontuação
    #1figura da resposta escolhidapassouobrigatóriaanswer figure call_965d46cf:effect (infer.rdd)
  9. 8Pontuação
    #2uma entrepassouobrigatóriatool_called(infer.ols): answer call is infer.rdd | tool_called(infer.rdd): ok
  10. 9Pontuação
    #3argumento igualpassouobrigatórianot applicable: the answer call is infer.rdd, not infer.ols
  11. 10Pontuação
    #4argumento igualpassouobrigatórianot applicable: the answer call is infer.rdd, not infer.ols
  12. 11Pontuação
    #5argumento igualfalhouobrigatóriainfer.rdd.y = 'rownames'
  13. 12Pontuação
    #6argumento igualfalhouobrigatóriainfer.rdd.running = 'score'
  14. 13Pontuação
    #7argumento igualpassouregistradanot applicable: the answer call is infer.rdd, not infer.ols
  15. 14Pontuação
    #8argumento igualpassouregistradanot applicable: the answer call is infer.rdd, not infer.ols
  16. 15Pontuação
    #9argumento igualpassouregistradanot applicable: the answer call is infer.rdd, not infer.ols
  17. 16Pontuação
    #10argumento igualpassouregistradanot applicable: the answer call is infer.rdd, not infer.ols
  18. 17Pontuação
    #11diagnósticopassouregistradanot applicable: the answer call is infer.rdd, not infer.ols
  19. 18Pontuação
    #12figura da resposta próximafalhouregistrada279.1647313 vs 0.4843287147634966
  20. 19Pontuação
    #13figura da resposta próximafalhouregistrada248.2599067 vs 0.02893215206729024
  21. 20Pontuação
    #14figura da resposta próximafalhouregistrada279.1647313 vs 0.48
  22. 21Pontuação
    #15figura da resposta próximafalhouregistrada248.2599067 vs 0.02

Épocas × verificações

Resultado de cada verificação em cada época pontuada
#0123456789101112131415
Época 1passoupassoupassoupassoupassoufalhoufalhoupassoupassoupassoupassoupassoufalhoufalhoufalhoufalhou

Tentativas

Cada tentativa é seu próprio arquivo e é publicada; só a última de cada época é pontuada.

Downloads desta tarefa

Pacote da tarefa (.zip)
76,6 KB · sha256 2084224d6e1874266a5ffad1f54c01a9caba08f0f8032a865482f1bad2274ce8

O hash de um zip é só de transporte: o que ancora a integridade é o RUN_SHA256SUMS que vai dentro dele, cópia exata do SHA256SUMS da execução.

Downloads desta tarefa
ArquivoTamanhosha256
attachments/182e2d0093cd4622a4a8de228c73d03055cc983c684383dc97aaf47a42764652.json1,4 KB182e2d0093cd4622a4a8de228c73d03055cc983c684383dc97aaf47a42764652
attachments/433a6877aa6a378bbd4b7e2752e484d8cb7499c562d68222be231f62ff2fa420.json2,4 KB433a6877aa6a378bbd4b7e2752e484d8cb7499c562d68222be231f62ff2fa420
attachments/52ab03d8ec104abb85572294bf8a469d75c5de9e74d6042caabff8017adc572b.json64,0 KB52ab03d8ec104abb85572294bf8a469d75c5de9e74d6042caabff8017adc572b
attachments/b464788742358119415ce56dc044de30838474cd0ce71792d48a4fd545c86f9f.json1,5 KBb464788742358119415ce56dc044de30838474cd0ce71792d48a4fd545c86f9f
attachments/cd808089ea5f16af8267c2b8b8431d7e98521c987066730b15f6e24886af47b8.json287 Bcd808089ea5f16af8267c2b8b8431d7e98521c987066730b15f6e24886af47b8
attachments/d86717c8f43764d8cb5ef3ef4d2ac64402d8f19e421be56dd8fcf53490106ea9.json244 Bd86717c8f43764d8cb5ef3ef4d2ac64402d8f19e421be56dd8fcf53490106ea9
attachments/ef6092deaedd14c2051755be36756c9a3085d47bd6c96688c5b7e7f56f08e2c1.json1,5 KBef6092deaedd14c2051755be36756c9a3085d47bd6c96688c5b7e7f56f08e2c1
sources/lmb_2004.tab1_c3.paper.json2,2 KBc6037f81c696e71627fb818e71196269c50b9bab8b6b96faccce051f3e1ede54
sources/lmb_2004.tab1_c3.software.json1,2 KB00b331d82dc9435ab9fe8804d1d447ae997c2999379c7d536c8261d0bdf67517
specs/paper_repro.lmb_2004.tab1_c3.design.json11,9 KBf132be7b7ed8d80acebbecc2d51679547a29e3e83b81663c9960bc61f420b6de
traces/paper_repro.lmb_2004.tab1_c3.design.e1.a1.jsonl13,3 KB85c78ebe2cdef028a3fec4a786bef60cb7140152314ecc905fc2f2ddd863cc46
trajectories/paper_repro.lmb_2004.tab1_c3.design.e1.a1.jsonl18,3 KB9c7a3f38714660bfbf3327ae4a27ad07c366db1b70686d2b29a36744cc6a72ec