Tarefa paper_repro.stock_watson_2007.eq12_16.tool
paper_reprotoolT1publicépoca 1, tentativa 1Execução: 20261015T165744Z-suite-paper_repro-scripted-def9dfVeredito
Pergunta feita ao analista
Tarefa de ferramenta: nenhuma pergunta; a especificação de referência é chamada direto.
Valores esperados e de onde vêm
stock_watson_2007.eq12_16.software
- Fonte
- linearmodels 7.0: the reference specification of stock_watson_2007 eq12_16 (infer.iv_2sls, figure 'coef.lrprice') on an independent code path
- Tipo
- software
- Localização
- stock_watson_2007: Stock and Watson (2007), Chapter 12, cigarette demand, 1995 cross-section, TSLS with the real general sales tax per pack and the real cigarette-specific tax per pack (two instruments) (equation (12.16) as the AER package's CigarettesSW examples number it), coefficient on ln(P cigarettes)
- Valor
- -1,27742
-1.2774241334268481(se 0,249610.24961000039848988) - Conferido por
- execução de software · IV2SLS(dependent=lpacks, exog=[const, lrincome], endog=['lrprice'], instruments=['salestax', 'cigtax']).fit(cov_type='robust', debiased=True) on cigarettes (the file pinned at sha256 629e887a8104d483d450a9bbe487cb5613e62d116c4ecc84d6c8893b7393fcd2, after its 9 declared transforms, rows where year == 1995); n_obs = 48. The tool infer.iv_2sls (magi_infer, numpy) does not call linearmodels. Written by scripts/paper_repro_reference.py.
- Implementação
- independente da ferramenta
- Endereço
https://pypi.org/project/linearmodels/7.0/
- #0 figura próxima: -1,27742
-1.2774241334268481· relativa 0.000001 · absoluta 2.4961000039848985e-7 - #1 figura próxima: 0,24961
0.24961000039848988· relativa 0.000001 · absoluta 2.4961000039848985e-7
stock_watson_2007.eq12_16.paper
- Fonte
- Stock, J. H. and Watson, M. W. (2007). Introduction to Econometrics, 2nd edition. Boston: Pearson Addison Wesley. Chapter 12, the demand for cigarettes.
- Tipo
- textbook
- Localização
- Stock and Watson (2007), Chapter 12, cigarette demand, 1995 cross-section, TSLS with the real general sales tax per pack and the real cigarette-specific tax per pack (two instruments) (equation (12.16) as the AER package's CigarettesSW examples number it), coefficient on ln(P cigarettes)
- Página
- slide 12-10
- Trecho
TSLS estimates, Z = sales tax, cig-only tax (m = 2): −1.28 ln(P) (0.25)
- Valor como publicado
−1.28- Erro-padrão como publicado
0.25- Valor
- -1,28
-1.28(se 0,250.25) price elasticity (log points of packs per log point of real price) - Conferido por
- fonte secundária · Read on 2026-10-15 from 'Econ 422 Lecture Notes, IV Regression 2' (University of Maryland; the notes say they are slightly modified versions of lecture notes provided by Stock and Watson, 2007), slide 12-10 (PDF page 10), from the rendered page; the slides before it print the Stata runs behind the equations ('ivreg ... if year==1995, r'). The book itself was not read; the AER package's CigarettesSW examples number these models (12.15) and (12.16). The slide prints 9.89 – 1.28 ln(P) + 0.28 ln(Income) with (0.96) (0.25) (0.25); the excerpt writes its en dash as a minus sign.
- sha256 da cópia lida
440deb62d0973f49baceb1694c3e87372f8941d8de210126310ed67f7aeedf44(identifica a cópia lida, não um arquivo canônico)- Endereço
https://econweb.umd.edu/~chao/Teaching/Econ422/IV%20Regression%202.pdf- Licença
- Copyright Pearson; cited, not reproduced.
- #2 figura próxima: -1,28
-1.28· published_cell d=2 · absoluta 0.00500000128 - #3 figura próxima: 0,25
0.25· published_cell d=2 (the SE as printed) · absoluta 0.0050000010000000004
Verificações
| # | Verificação | Obrigatória | Resultado | Esperado | Observado | Tolerância | Fonte | Chamada |
|---|---|---|---|---|---|---|---|---|
| 0 | figura próxima -1.277424133 vs -1.2774241334268481 | obrigatória | passou | -1,27742-1.2774241334268481 | -1,27742-1.2774241334272798 | relativa 0.000001 · absoluta 2.4961000039848985e-7 | stock_watson_2007.eq12_16.software | — |
| 1 | figura próxima 0.2496100004 vs 0.24961000039848988 | obrigatória | passou | 0,249610.24961000039848988 | 0,249610.24961000039814105 | relativa 0.000001 · absoluta 2.4961000039848985e-7 | stock_watson_2007.eq12_16.software | — |
| 2 | figura próxima -1.277424133 vs -1.28 | obrigatória | passou | -1,28-1.28 | -1,27742-1.2774241334272798 | published_cell d=2 · absoluta 0.00500000128 | stock_watson_2007.eq12_16.paper | — |
| 3 | figura próxima 0.2496100004 vs 0.25 | obrigatória | passou | 0,250.25 | 0,249610.24961000039814105 | published_cell d=2 (the SE as printed) · absoluta 0.0050000010000000004 | stock_watson_2007.eq12_16.paper | — |
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 própria especificação da tarefa
| Argumento | Referência | Agente | |
|---|---|---|---|
| cluster | — | — | não fixado pela referência |
| dataset | "cigarettes" | "cigarettes" | igual |
| endog | ["lrprice"] | ["lrprice"] | igual |
| exog | ["lrincome"] | ["lrincome"] | igual |
| instruments | ["salestax","cigtax"] | ["salestax","cigtax"] | igual |
| level | — | 0,950.95 | não fixado pela referência |
| se | "HC1" | "HC1" | igual |
| subset | "year == 1995" | "year == 1995" | igual |
| y | "lpacks" | "lpacks" | igual |
Trajetória
Cada evento na ordem em que aconteceu: turnos do modelo, chamadas de ferramentas, guardas, transformações e pontuação.
- 0Início
Tarefa de ferramenta: nenhuma pergunta; a especificação de referência é chamada direto.
cigarettes(agent)Stock and Watson's cigarette consumption panel for the 48 continental U.S. states, 1985 and 1995, as distributed in the R package AER (data set CigarettesSW, served by Rdatasets); one row per state and year (96 rows). Columns: state; year; cpi, the consumer price index; population; packs, packs of cigarettes per capita; income, total state personal income (nominal); tax, the average state, federal and local excise taxes per pack (cents); price, the average price per pack including taxes (cents); taxs, the average excise taxes per pack including sales tax (cents). Added by the declared transforms: rprice = price / cpi, the real price; lrprice = log(rprice); lpacks = log(packs); rincome = income / population / cpi, real per capita income; lrincome = log(rincome); salestax = (taxs - tax) / cpi, the real general sales tax per pack; cigtax = tax / cpi, the real cigarette-specific tax per pack; and the intermediate columns income_pc and sales_tax_nominal.
file629e887a8104d483d450a9bbe487cb5613e62d116c4ecc84d6c8893b7393fcd2· frame —derive{"args":{"left":"price","right":"cpi"},"name":"rprice","op":"ratio"}derive{"args":{"column":"rprice"},"name":"lrprice","op":"log"}derive{"args":{"column":"packs"},"name":"lpacks","op":"log"}derive{"args":{"left":"income","right":"population"},"name":"income_pc","op":"ratio"}derive{"args":{"left":"income_pc","right":"cpi"},"name":"rincome","op":"ratio"}derive{"args":{"column":"rincome"},"name":"lrincome","op":"log"}derive{"args":{"left":"taxs","right":"tax"},"name":"sales_tax_nominal","op":"diff"}derive{"args":{"left":"sales_tax_nominal","right":"cpi"},"name":"salestax","op":"ratio"}derive{"args":{"left":"tax","right":"cpi"},"name":"cigtax","op":"ratio"}
- 1Transformação
cigarettes·derive{"args":{"left":"price","right":"cpi"},"name":"rprice","op":"ratio"}96 → 96 linhasFrame antes → depois:edb46c0b5416→ef8fa78f0390 - 2Transformação
cigarettes·derive{"args":{"column":"rprice"},"name":"lrprice","op":"log"}96 → 96 linhasFrame antes → depois:ef8fa78f0390→e105ed6c1d84 - 3Transformação
cigarettes·derive{"args":{"column":"packs"},"name":"lpacks","op":"log"}96 → 96 linhasFrame antes → depois:e105ed6c1d84→d62b932706e1 - 4Transformação
cigarettes·derive{"args":{"left":"income","right":"population"},"name":"income_pc","op":"ratio"}96 → 96 linhasFrame antes → depois:d62b932706e1→e733a0b104f8 - 5Transformação
cigarettes·derive{"args":{"left":"income_pc","right":"cpi"},"name":"rincome","op":"ratio"}96 → 96 linhasFrame antes → depois:e733a0b104f8→e3dc0e2e1b4a - 6Transformação
cigarettes·derive{"args":{"column":"rincome"},"name":"lrincome","op":"log"}96 → 96 linhasFrame antes → depois:e3dc0e2e1b4a→e131ae1b8f79 - 7Transformação
cigarettes·derive{"args":{"left":"taxs","right":"tax"},"name":"sales_tax_nominal","op":"diff"}96 → 96 linhasFrame antes → depois:e131ae1b8f79→ad36a62c9d85 - 8Transformação
cigarettes·derive{"args":{"left":"sales_tax_nominal","right":"cpi"},"name":"salestax","op":"ratio"}96 → 96 linhasFrame antes → depois:ad36a62c9d85→33ace4f530f2 - 9Transformação
cigarettes·derive{"args":{"left":"tax","right":"cpi"},"name":"cigtax","op":"ratio"}96 → 96 linhasFrame antes → depois:33ace4f530f2→be62d9713478 - 10Ferramenta
infer.iv_2slsv0.1.0call_956574b1decidido pelo códigoreexecutávelArgumentos
{ "cluster": null, "dataset": "cigarettes", "endog": [ "lrprice" ], "exog": [ "lrincome" ], "instruments": [ "salestax", "cigtax" ], "level": 0.95, "se": "HC1", "subset": "year == 1995", "y": "lpacks" }Figuras call_956574b1 Chave Valor Valor bruto Erro-padrão IC coef.lrprice 2SLS effect of lrprice on lpacks-1,27742 -1.27742413342727980,24961 0.24961000039814105-1,78016 – -0,774684 Diagnósticosfirst_stage_F.lrprice= 209,676209.67626939658422partial_r2.lrprice= 0,9175210.9175207497862164weak_instrument=falseoverid_p= 0,5641190.5641191400175725sargan= 0,3326220.3326221419365281sargan_df= 11n_obs= 4848se_type="HC1"n_clusters= —
Tabelas (3)
{ "coefficients": [ { "ci_high": 11.826917636464222, "ci_low": 7.962993445846207, "coef": 9.894955541155214, "p": 1.9467019162255485e-13, "se": 0.9592169428712987, "t": 10.31565967917109, "term": "Intercept" }, { "ci_high": 0.7917648364356482, "ci_low": -0.230955186268808, "coef": 0.2804048250834201, "p": 0.27527475270032126, "se": 0.253889653418621, "t": 1.104435810233984, "term": "lrincome" }, { "ci_high": -0.7746837857268345, "ci_low": -1.780164481127725, "coef": -1.2774241334272798, "p": 0.000006210718082934866, "se": 0.24961000039814105, "t": -5.117680106525064, "term": "lrprice" } ], "first_stage": [ { "ci_high": 0.015195848681257965, "ci_low": 0.006583808496625783, "coef": 0.010889828588941873, "endog": "lrprice", "instrument": "salestax", "p": 0.000006998551744539232, "se": 0.002136592920775031, "t": 5.096819559334532 }, { "ci_high": 0.01110467130342385, "ci_low": 0.00759872486537743, "coef": 0.00935169808440064, "endog": "lrprice", "instrument": "cigtax", "p": 6.820207505550646e-14, "se": 0.000869803226593554, "t": 10.751509994996315 } ], "reduced_form": [ { "ci_high": 0.018864366404242393, "ci_low": -0.03402221946515445, "coef": -0.007578926530456026, "instrument": "salestax", "p": 0.5664612772562537, "se": 0.01312082881059387, "t": -0.5776255936162153 }, { "ci_high": -0.005510298460779281, "ci_low": -0.021395893113518166, "coef": -0.013453095787148723, "instrument": "cigtax", "p": 0.001387396539754572, "se": 0.003941115966679991, "t": -3.4135244689289506 } ] }- Digests dos dados
cigarettesbe62d9713478ba73b51e4f20f511318a57aa1535f2538e36c274004942f80a1f- sha256 do resultado
9267a643d75bd87e7555cff4bea117e5899165eb7cbab23fc316f7b211c35633
- 11Pontuação#0figura próximapassouobrigatória
-1.277424133 vs -1.2774241334268481 - 12Pontuação#1figura próximapassouobrigatória
0.2496100004 vs 0.24961000039848988 - 13Pontuação#2figura próximapassouobrigatória
-1.277424133 vs -1.28 - 14Pontuação#3figura próximapassouobrigatória
0.2496100004 vs 0.25
Épocas × verificações
| # | 0 | 1 | 2 | 3 |
|---|---|---|---|---|
| Época 1 | passou | passou | passou | passou |
Tentativas
Cada tentativa é seu próprio arquivo e é publicada; só a última de cada época é pontuada.
- época 1, tentativa 1passoupontuada(exibindo)
Downloads desta tarefa
96fc386029a3776eaeb3fcf83e1a0deace98ee45ae66787154098ae72625d97fO 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.
| Arquivo | Tamanho | sha256 |
|---|---|---|
| sources/stock_watson_2007.eq12_16.paper.json | 1,9 KB | 81ba66cb108d90b0d40441aa7764b0980aef9456a190ddc4ed94537762325cc5 |
| sources/stock_watson_2007.eq12_16.software.json | 1,5 KB | 6d00c378c09b3cc795b4cc7f992deb1a4c7def396a0b7212d008ca961ea116d9 |
| specs/paper_repro.stock_watson_2007.eq12_16.tool.json | 6,0 KB | 5bcbfd2ba88105f78fbfc21bfb370210a4e1765f8d06053c4d117318021d079d |
| traces/paper_repro.stock_watson_2007.eq12_16.tool.e1.a1.jsonl | 13,3 KB | b5befdc9704dc3b67fe705fa24a6fd22f4e1054b41b8ed970c653681d205edfb |
| trajectories/paper_repro.stock_watson_2007.eq12_16.tool.e1.a1.jsonl | 15,1 KB | 6695917d2b1d1df93de3286912c7516f9e11502bb597d56bc601bb8dc9209603 |