{"call_id":"call_e64c4546","run_id":"20261015T171300Z-suite-closed_form-scripted-9fb914/closed_form.combine.decile_share_ratio/e1a1","step":"analysis","kind":"tool","name":"core.quantile_shares","version":"0.1.0","code_version":"2925aeab2262","inputs":{"dataset":"deciles","income":"income","weights":null,"groups":10},"input_digest":"acb1161a3564327b43971e86642ae2651d2c62bcbb71961d4b5df4882cd60c33","dataset_digests":{"deciles":"6a00180b9320cd1b10af10112c9269f9fb5f26e2cc33c0cfcf2b2282ed031378"},"result":{"tool":"core.quantile_shares","version":"0.1.0","call_id":"call_e64c4546","status":"ok","reason":"","figures":[{"key":"top_share","value":0.31504990213864364,"unit":"share","label":"Share of total income held by the top decile (unweighted)","se":null,"ci_low":null,"ci_high":null,"ci_level":null,"derivation":{"steps":[{"text_pt":"Ordenam-se as pessoas pela renda e formam-se 10 grupos de igual peso; a parcela do grupo mais rico é a sua renda ponderada sobre a renda ponderada total.","formula":"s_topo = Y_topo / Y","terms":[{"symbol":"Y_topo","value":47578102.82005656,"unit":"","note":"Σw·y no grupo mais rico"},{"symbol":"Y","value":151017672.11188948,"unit":"","note":"Σw·y de toda a população"}],"result":0.31504990213864364,"unit":"parcela"}],"note_pt":""}},{"key":"bottom_share","value":0.018692071360126933,"unit":"share","label":"Share of total income held by the bottom decile (unweighted)","se":null,"ci_low":null,"ci_high":null,"ci_level":null,"derivation":{"steps":[{"text_pt":"Ordenam-se as pessoas pela renda e formam-se 10 grupos de igual peso; a parcela do grupo mais pobre é a sua renda ponderada sobre a renda ponderada total.","formula":"s_base = Y_base / Y","terms":[{"symbol":"Y_base","value":2822833.103755689,"unit":"","note":"Σw·y no grupo mais pobre"},{"symbol":"Y","value":151017672.11188948,"unit":"","note":"Σw·y de toda a população"}],"result":0.018692071360126933,"unit":"parcela"}],"note_pt":""}}],"diagnostics":[{"name":"n_obs","value":100000,"flag":false,"note":"rows used"},{"name":"weighted_population","value":100000.0,"flag":false,"note":"no weights: the number of rows"},{"name":"weights_used","value":false,"flag":true,"note":"every row counts as one person; wrong for a survey sample"},{"name":"groups","value":10,"flag":false,"note":""},{"name":"empty_groups","value":0,"flag":false,"note":""}],"tables":{"shares":[{"group":1,"share":0.018692071360126933,"cumulative_share":0.018692071360126933,"population_share":0.1,"n":10000},{"group":2,"share":0.03164310844083245,"cumulative_share":0.05033517980095938,"population_share":0.1,"n":10000},{"group":3,"share":0.04235153415950743,"cumulative_share":0.09268671396046682,"population_share":0.1,"n":10000},{"group":4,"share":0.053406900487458914,"cumulative_share":0.14609361444792573,"population_share":0.1,"n":10000},{"group":5,"share":0.06576561611960138,"cumulative_share":0.21185923056752712,"population_share":0.1,"n":10000},{"group":6,"share":0.08045466336297184,"cumulative_share":0.29231389393049895,"population_share":0.1,"n":10000},{"group":7,"share":0.09912102988807603,"cumulative_share":0.391434923818575,"population_share":0.1,"n":10000},{"group":8,"share":0.12517408377982683,"cumulative_share":0.5166090075984018,"population_share":0.1,"n":10000},{"group":9,"share":0.16834109026295482,"cumulative_share":0.6849500978613566,"population_share":0.1,"n":10000},{"group":10,"share":0.31504990213864364,"cumulative_share":1.0000000000000002,"population_share":0.1,"n":10000}]},"datasets":{},"warnings":["no weight column: every row counts as one person. That is right for a census or an equal-probability sample and wrong for survey data such as PNADc or POF; pass weights="],"assumptions":[],"notes":""},"outputs":null,"output_digest":"ade95ac0d169cc96e983b0651e9207c76e7aac5ee15c92148e8ec9600f1c4c4f","params_versions":[],"sources":[],"started_at":"2026-10-15T17:13:00.684039Z","duration_ms":2.5826659984886646,"error":null,"decided_by":"code","rationale":"","cached":false,"informed_by":[],"model":null,"prompt":null,"response":null,"tokens_in":null,"tokens_out":null,"meta":{}}
{"call_id":"call_8d5e14f7","run_id":"20261015T171300Z-suite-closed_form-scripted-9fb914/closed_form.combine.decile_share_ratio/e1a1","step":"analysis","kind":"tool","name":"calc.combine","version":"0.1.0","code_version":"2925aeab2262","inputs":{"op":"ratio","a":"call_e64c4546:top_share","b":"call_e64c4546:bottom_share","label":"","unit":""},"input_digest":"3986c429fac2ac6bd8f9f0ebd8e8888f50ab0b9c52a5ae1d48acf88919d797d5","dataset_digests":{},"result":{"tool":"calc.combine","version":"0.1.0","call_id":"call_8d5e14f7","status":"ok","reason":"","figures":[{"key":"result","value":16.854734612809878,"unit":"","label":"ratio of call_e64c4546:top_share and call_e64c4546:bottom_share","se":null,"ci_low":null,"ci_high":null,"ci_level":null,"derivation":{"steps":[{"text_pt":"Operação ratio sobre duas figuras desta execução, lidas pela referência.","formula":"a / b","terms":[{"symbol":"a","value":0.31504990213864364,"unit":"share","note":"call_e64c4546:top_share"},{"symbol":"b","value":0.018692071360126933,"unit":"share","note":"call_e64c4546:bottom_share"}],"result":16.854734612809878,"unit":""}],"note_pt":""}}],"diagnostics":[],"tables":{},"datasets":{},"warnings":["no uncertainty is propagated: the result carries no standard error"],"assumptions":[],"notes":""},"outputs":null,"output_digest":"862de73118ac4e42ad2fe7e7b38756e97eceb18db340cf7c7251dda3b3e7bcc3","params_versions":[],"sources":[],"started_at":"2026-10-15T17:13:00.686705Z","duration_ms":0.036082929000258446,"error":null,"decided_by":"code","rationale":"","cached":false,"informed_by":[],"model":null,"prompt":null,"response":null,"tokens_in":null,"tokens_out":null,"meta":{}}
