Skip to content

Commit

Permalink
Merge pull request #1817 from anth-volk/fix/decile_lsr_subtitle
Browse files Browse the repository at this point in the history
Fix Decile LSR subtitles
  • Loading branch information
MaxGhenis authored May 24, 2024
2 parents 3fa2265 + 918924f commit 7c2bcca
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 30 deletions.
4 changes: 2 additions & 2 deletions src/pages/policy/output/ImpactTypes.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import relativeImpactByDecile from "./decile/RelativeImpactByDecile";
import relativeImpactByWealthDecile from "./decile/RelativeImpactByWealthDecile";
import laborSupplyImpact from "./LaborSupplyResponse";
import lsrHoursImpact from "./LaborSupplyHoursImpact";
import LabourSupplyDecileAverageImpact from "./LabourSupplyDecileAverageImpact";
import LabourSupplyDecileAbsoluteImpact from "./LabourSupplyDecileAbsoluteImpact";
import LabourSupplyDecileRelativeImpact from "./LabourSupplyDecileRelativeImpact";
import Analysis from "./Analysis";

Expand All @@ -37,7 +37,7 @@ const map = {
inequalityImpact: inequalityImpact,
// cliffImpact: cliffImpact,
"laborSupplyImpact.byDecile.relative": LabourSupplyDecileRelativeImpact,
"laborSupplyImpact.byDecile.average": LabourSupplyDecileAverageImpact,
"laborSupplyImpact.byDecile.absolute": LabourSupplyDecileAbsoluteImpact,
"laborSupplyImpact.hours": lsrHoursImpact,
analysis: Analysis,
};
Expand Down
12 changes: 6 additions & 6 deletions src/pages/policy/output/LaborSupplyHoursImpact.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,18 +136,18 @@ export default function lsrHoursImpact(props) {
{overallEffect > 0 ? "increasing" : "decreasing"} full time-equivalent
hours from {fmt(baselineFTE)} to {fmt(reformFTE)}.
</p>
<p>
The income effect is the change in earnings from individuals responding
to the policy&apos;s effect on their net income. The substitution effect
is the response due the policy&apos;s effect on effective marginal
wages.
</p>
<ImpactPlot
values={values}
labels={labels}
metadata={metadata}
mobile={mobile}
/>
<p>
The income effect is the change in earnings from individuals responding
to the policy&apos;s effect on their net income. The substitution effect
is the response due the policy&apos;s effect on effective marginal
wages.
</p>
</ImpactChart>
);
const csv = () => {
Expand Down
12 changes: 6 additions & 6 deletions src/pages/policy/output/LaborSupplyResponse.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,18 +157,18 @@ export default function lsrImpact(props) {
{relChangeStr}% {budgetaryImpactLSRChange > 0 ? "increase" : "decrease"}
).
</p>
<p>
The income effect is the change in earnings from individuals responding
to the policy&apos;s effect on their net income. The substitution effect
is the response due the policy&apos;s effect on effective marginal
wages.
</p>
<ImpactPlot
values={values}
labels={labels}
metadata={metadata}
mobile={mobile}
/>
<p>
The income effect is the change in earnings from individuals responding
to the policy&apos;s effect on their net income. The substitution effect
is the response due the policy&apos;s effect on effective marginal
wages.
</p>
</ImpactChart>
);
const csv = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { formatCurrencyAbbr, localeCode } from "../../../lang/format";
import { ChartLogo } from "../../../api/charts";
import { plotLayoutFont } from "pages/policy/output/utils";

export default function LabourSupplyDecileAverageImpact(props) {
export default function LabourSupplyDecileAbsoluteImpact(props) {
const { policyLabel, metadata, impact, countryId } = props;

const decileImpact = impact.labour_supply_response;
Expand All @@ -21,13 +21,8 @@ export default function LabourSupplyDecileAverageImpact(props) {

const chart = (
<ImpactChart
title={`${policyLabel}'s average labor supply impact by decile`}
title={`${policyLabel}'s absolute labor supply impact by decile`}
>
<p>
This chart shows the estimated average change in earnings (as a
percentage of market income) for each disposable income decile, and
split by the substitution and income effects.
</p>
{
<Plot
data={[
Expand Down Expand Up @@ -133,6 +128,11 @@ export default function LabourSupplyDecileAverageImpact(props) {
}}
/>
}
<p>
This chart shows the estimated absolute change in earnings (in
{`${countryId === "uk" ? " pounds" : " dollars"}`}) for each disposable
income decile, and split by the substitution and income effects.
</p>
</ImpactChart>
);

Expand Down
10 changes: 5 additions & 5 deletions src/pages/policy/output/LabourSupplyDecileRelativeImpact.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ export default function LabourSupplyDecileRelativeImpact(props) {
<ImpactChart
title={`${policyLabel}'s relative labor supply impact by decile`}
>
<p>
This chart shows the estimated relative change in earnings (as a
percentage of market income) for each disposable income decile, and
split by the substitution and income effects.
</p>
{
<Plot
data={[
Expand Down Expand Up @@ -133,6 +128,11 @@ export default function LabourSupplyDecileRelativeImpact(props) {
}}
/>
}
<p>
This chart shows the estimated relative change in earnings (as a
percentage of total earnings) for each disposable income decile, and
split by the substitution and income effects.
</p>
</ImpactChart>
);

Expand Down
8 changes: 4 additions & 4 deletions src/pages/policy/output/tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export const policyOutputs = {
laborSupplyImpact: "Labor supply impact (experimental)",
laborSupplyDecileRelativeImpact:
"Labor supply relative impact by decile (experimental)",
laborSupplyDecileAverageImpact:
"Labor supply average impact by decile (experimental)",
laborSupplyDecileAbsoluteImpact:
"Labor supply absolute impact by decile (experimental)",
analysis: "AI summary (experimental)",
codeReproducibility: "Reproduce in Python",
};
Expand Down Expand Up @@ -162,8 +162,8 @@ export function getPolicyOutputTree(countryId) {
label: "Relative",
},
{
name: "policyOutput.laborSupplyImpact.byDecile.average",
label: "Average",
name: "policyOutput.laborSupplyImpact.byDecile.absolute",
label: "Absolute",
},
],
},
Expand Down

0 comments on commit 7c2bcca

Please sign in to comment.