{"skills":[{"name":"Put a relative-risk claim into absolute numbers","description":"Convert a risk ratio or odds ratio to absolute events per 1,000 using a stated comparator risk, population and follow-up.","content":"# Put a relative-risk claim into absolute numbers\n\nConvert a risk ratio or odds ratio to absolute events per 1,000 using a stated comparator risk, population and follow-up.\n\n## When to use this skill\n\n- A paper, press release or patient leaflet reports a risk ratio, odds ratio or 'cut the risk by 30%' and someone wants to know how many people per 100 or per 1,000 that affects.\n- Someone is writing a plain-language summary, summary of findings table or decision aid and needs absolute numbers beside a relative effect.\n- Two groups with different baseline risks are being given the same relative effect and someone wants to see how the absolute effect differs.\n\n## When not to use it\n\n- Deciding whether a person should take a treatment or have a test. Absolute numbers inform that conversation, but the decision belongs with the person and their clinician.\n- Converting hazard ratios, rate ratios or survival curves into risks over a period. That relies on extra assumptions or the underlying survival data, so it needs the study authors' figures or a statistician.\n- Judging whether the estimate is trustworthy. Use a risk of bias or certainty of evidence assessment, such as GRADE, for that.\n\n## What you need\n\n- Relative effect with its measure and direction, comparator event risk, outcome, population, follow-up period and any interval.\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- What exactly is the outcome, and over what follow-up period was it measured? An absolute risk only means something for a stated event and time frame.\n- What is the baseline risk, and where does it come from: the study's control group, a population register or a clinical risk score? A different baseline can change the absolute effect several-fold.\n- Is the estimate a risk ratio, an odds ratio, a hazard ratio or something else, and is it the comparison group relative to the reference group or the other way round?\n- Is there a confidence interval for the relative effect? Without one, the absolute figures can only be given as point estimates.\n\n## Method\n\n1. Pin down the event, the population, the follow-up period and the direction of the comparison (comparison relative to reference). If it is unclear which group is the reference, ask before calculating, because inverting the ratio changes the answer.\n2. Check the effect measure. A risk ratio or an odds ratio for a yes-or-no outcome can be converted. A hazard ratio, a rate ratio or a rate per person-year does not give a risk over a period on its own, so leave the comparison risk unknown. Cochrane's method for time-to-event outcomes applies a hazard ratio to a comparator risk at a fixed time only by assuming the hazard ratio is constant over follow-up. Offer that figure, if at all, as a separately labelled illustration, not as the result.\n3. Check the baseline. It must be the probability of the same event, in a comparable population, over the same period as the effect estimate. A case fraction from a case-control study is not a population risk. If several baselines are plausible, such as low, moderate and high risk groups, calculate each and say whose risk it is. For a covariate-adjusted estimate, check the baseline describes the same covariate profile.\n4. Write the baseline as a proportion p between 0 and 1. For a risk ratio RR, the comparison risk is p \u00d7 RR. For an odds ratio OR, with p strictly between 0 and 1, it is (OR \u00d7 p) \u00f7 (1 \u2212 p + OR \u00d7 p).\n5. Multiply both risks by 1,000. The difference is comparison minus baseline, with its sign. Round only at the end. A calculated risk below 0 or above 1,000 per 1,000 means the inputs are incompatible: report that rather than a number.\n6. If a confidence interval for the relative effect is supplied, convert each limit with the same baseline and formula. Say that the interval does not include uncertainty in the baseline risk itself.\n7. Present natural frequencies with the population and time frame, for example 'of 1,000 people like these followed for a year, about 20 would have the event without the treatment and 15 with it'. Use causal wording only when the design supports it, such as a randomised comparison.\n\n## Checks before you deliver\n\n- A lower relative risk does not reveal the number of events avoided without a baseline.\n- Odds ratios are not risk ratios. With a 40% baseline, treating an odds ratio of 0.5 as a risk ratio gives 200 per 1,000 instead of 250.\n- Multiplying a period risk by a hazard ratio (0.10 \u00d7 0.8) is wrong, and even the proper time-to-event conversion rests on an assumption the supplied data may not support.\n- The same relative effect gives very different absolute effects in low-risk and high-risk groups. One absolute figure without its baseline misleads both.\n- Mixing percentages and proportions, such as multiplying 2 by 0.75 instead of 0.02, produces figures out by a factor of 100.\n\n## How to present the result\n\nLead with the absolute result as natural frequencies: events per 1,000 in each group, the difference, the population and the time frame. Then show the baseline used and where it came from, the formula applied and any interval. If a conversion was not justified, say which input is missing and what would supply it.\n\n## Worked example\n\n**Request:** Express the result per 1,000.\n\n**Supplied material:**\n\n```text\nSame population and year. Baseline risk 2%. Risk ratio 0.75.\n```\n\n**Answer:** For 1,000 people like those in the comparison group over the same year, the baseline corresponds to 20 events. Applying the reported ratio gives an estimated 15 events, or 5 fewer per 1,000. No uncertainty interval was supplied.\n\n## Structured output for tests\n\nFor an ordinary job, answer in the format above and point back to the supplied evidence. Use this structure only for the test cases published with this skill, or when someone asks for structured JSON.\n\nReturn baseline_per_1000, comparison_per_1000 and difference_per_1000, signed as comparison minus baseline. Retain a known baseline; use null for calculations not justified by compatible inputs and a supported effect measure.\n\n## Sources\n\n- [Cochrane Handbook, chapter 15: Interpreting results and drawing conclusions](https:\/\/www.cochrane.org\/authors\/handbooks-and-manuals\/handbook\/current\/chapter-15): Sections 15.4.4.2 and 15.4.4.3 convert risk ratios and odds ratios to risk differences using an assumed comparator risk, and 15.4.4.5 applies the same formula to each confidence limit, noting that the interval does not include uncertainty in the comparator risk.\n- [Cochrane Handbook, chapter 14: Completing 'Summary of findings' tables](https:\/\/www.cochrane.org\/authors\/handbooks-and-manuals\/handbook\/current\/chapter-14): Section 14.1.6.3 recommends presenting comparator risks as natural frequencies per 100 or 1,000 for stated time frames, with up to three typical risks. Section 14.1.5.2 shows that converting a hazard ratio assumes a relative effect that is constant over time.\n- [Cochrane Handbook, chapter 6: Choosing effect measures](https:\/\/www.cochrane.org\/authors\/handbooks-and-manuals\/handbook\/current\/chapter-06): Section 6.4.1.3 warns that odds ratios and risk ratios differ when events are common and that reading an odds ratio as a risk ratio tends to overstate the effect.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/absolute-risk-translation\n","scope":"contextual","trigger_keywords":["Put a relative-risk claim into absolute numbers","absolute-risk-translation","absolute risk translation","The study says it cuts the risk by 30%. How many people in 1,000 is that?","The study says it cuts the risk by 30%. How many people in 1,000 is that","absolute risk per","risk per 1,000","odds ratio into absolute"],"is_private":true,"is_active":true,"scripts":[{"name":"absolute-risk-translation-check","description":"Compare a saved JSON answer with a published test. Pass tests\/case-1\/expected.json (or another case) and the path to your answer.","language":"python","filename":"absolute-risk-translation-check.py","content":"from pathlib import Path\nimport runpy\n\nrunpy.run_path(str(Path(__file__).parent \/ 'tests' \/ 'check.py'), run_name='__main__')\n","supporting_files":[{"path":"SKILL.md","content":"---\nname: absolute-risk-translation\ndescription: \"Convert a risk ratio or odds ratio from a trial, review or news story into events per 1,000 people, using a stated baseline risk and time frame. Use when someone asks what a relative risk reduction means in absolute terms, or how many fewer people per 1,000 would have the outcome.\"\nlicense: CC-BY-4.0\nmetadata:\n  author: Raq.com\n  version: \"2026-11-22\"\n  homepage: https:\/\/skills.raq.com\/skills\/absolute-risk-translation\n---\n\n# Put a relative-risk claim into absolute numbers\n\nConvert a risk ratio or odds ratio to absolute events per 1,000 using a stated comparator risk, population and follow-up.\n\n## When to use this skill\n\n- A paper, press release or patient leaflet reports a risk ratio, odds ratio or 'cut the risk by 30%' and someone wants to know how many people per 100 or per 1,000 that affects.\n- Someone is writing a plain-language summary, summary of findings table or decision aid and needs absolute numbers beside a relative effect.\n- Two groups with different baseline risks are being given the same relative effect and someone wants to see how the absolute effect differs.\n\n## When not to use it\n\n- Deciding whether a person should take a treatment or have a test. Absolute numbers inform that conversation, but the decision belongs with the person and their clinician.\n- Converting hazard ratios, rate ratios or survival curves into risks over a period. That relies on extra assumptions or the underlying survival data, so it needs the study authors' figures or a statistician.\n- Judging whether the estimate is trustworthy. Use a risk of bias or certainty of evidence assessment, such as GRADE, for that.\n\n## What you need\n\n- Relative effect with its measure and direction, comparator event risk, outcome, population, follow-up period and any interval.\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- What exactly is the outcome, and over what follow-up period was it measured? An absolute risk only means something for a stated event and time frame.\n- What is the baseline risk, and where does it come from: the study's control group, a population register or a clinical risk score? A different baseline can change the absolute effect several-fold.\n- Is the estimate a risk ratio, an odds ratio, a hazard ratio or something else, and is it the comparison group relative to the reference group or the other way round?\n- Is there a confidence interval for the relative effect? Without one, the absolute figures can only be given as point estimates.\n\n## Method\n\n1. Pin down the event, the population, the follow-up period and the direction of the comparison (comparison relative to reference). If it is unclear which group is the reference, ask before calculating, because inverting the ratio changes the answer.\n2. Check the effect measure. A risk ratio or an odds ratio for a yes-or-no outcome can be converted. A hazard ratio, a rate ratio or a rate per person-year does not give a risk over a period on its own, so leave the comparison risk unknown. Cochrane's method for time-to-event outcomes applies a hazard ratio to a comparator risk at a fixed time only by assuming the hazard ratio is constant over follow-up. Offer that figure, if at all, as a separately labelled illustration, not as the result.\n3. Check the baseline. It must be the probability of the same event, in a comparable population, over the same period as the effect estimate. A case fraction from a case-control study is not a population risk. If several baselines are plausible, such as low, moderate and high risk groups, calculate each and say whose risk it is. For a covariate-adjusted estimate, check the baseline describes the same covariate profile.\n4. Write the baseline as a proportion p between 0 and 1. For a risk ratio RR, the comparison risk is p \u00d7 RR. For an odds ratio OR, with p strictly between 0 and 1, it is (OR \u00d7 p) \u00f7 (1 \u2212 p + OR \u00d7 p).\n5. Multiply both risks by 1,000. The difference is comparison minus baseline, with its sign. Round only at the end. A calculated risk below 0 or above 1,000 per 1,000 means the inputs are incompatible: report that rather than a number.\n6. If a confidence interval for the relative effect is supplied, convert each limit with the same baseline and formula. Say that the interval does not include uncertainty in the baseline risk itself.\n7. Present natural frequencies with the population and time frame, for example 'of 1,000 people like these followed for a year, about 20 would have the event without the treatment and 15 with it'. Use causal wording only when the design supports it, such as a randomised comparison.\n\n## Checks before you deliver\n\n- A lower relative risk does not reveal the number of events avoided without a baseline.\n- Odds ratios are not risk ratios. With a 40% baseline, treating an odds ratio of 0.5 as a risk ratio gives 200 per 1,000 instead of 250.\n- Multiplying a period risk by a hazard ratio (0.10 \u00d7 0.8) is wrong, and even the proper time-to-event conversion rests on an assumption the supplied data may not support.\n- The same relative effect gives very different absolute effects in low-risk and high-risk groups. One absolute figure without its baseline misleads both.\n- Mixing percentages and proportions, such as multiplying 2 by 0.75 instead of 0.02, produces figures out by a factor of 100.\n\n## How to present the result\n\nLead with the absolute result as natural frequencies: events per 1,000 in each group, the difference, the population and the time frame. Then show the baseline used and where it came from, the formula applied and any interval. If a conversion was not justified, say which input is missing and what would supply it.\n\n## Worked example\n\n**Request:** Express the result per 1,000.\n\n**Supplied material:**\n\n```text\nSame population and year. Baseline risk 2%. Risk ratio 0.75.\n```\n\n**Answer:** For 1,000 people like those in the comparison group over the same year, the baseline corresponds to 20 events. Applying the reported ratio gives an estimated 15 events, or 5 fewer per 1,000. No uncertainty interval was supplied.\n\n## Structured output for tests\n\nFor an ordinary job, answer in the format above and point back to the supplied evidence. Use this structure only for the test cases published with this skill, or when someone asks for structured JSON.\n\nReturn baseline_per_1000, comparison_per_1000 and difference_per_1000, signed as comparison minus baseline. Retain a known baseline; use null for calculations not justified by compatible inputs and a supported effect measure.\n\n## Sources\n\n- [Cochrane Handbook, chapter 15: Interpreting results and drawing conclusions](https:\/\/www.cochrane.org\/authors\/handbooks-and-manuals\/handbook\/current\/chapter-15): Sections 15.4.4.2 and 15.4.4.3 convert risk ratios and odds ratios to risk differences using an assumed comparator risk, and 15.4.4.5 applies the same formula to each confidence limit, noting that the interval does not include uncertainty in the comparator risk.\n- [Cochrane Handbook, chapter 14: Completing 'Summary of findings' tables](https:\/\/www.cochrane.org\/authors\/handbooks-and-manuals\/handbook\/current\/chapter-14): Section 14.1.6.3 recommends presenting comparator risks as natural frequencies per 100 or 1,000 for stated time frames, with up to three typical risks. Section 14.1.5.2 shows that converting a hazard ratio assumes a relative effect that is constant over time.\n- [Cochrane Handbook, chapter 6: Choosing effect measures](https:\/\/www.cochrane.org\/authors\/handbooks-and-manuals\/handbook\/current\/chapter-06): Section 6.4.1.3 warns that odds ratios and risk ratios differ when events are common and that reading an odds ratio as a risk ratio tends to overstate the effect.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/absolute-risk-translation\n"},{"path":"LICENSE.txt","content":"Original Raq.com instructions and synthetic examples: CC BY 4.0.\nhttps:\/\/creativecommons.org\/licenses\/by\/4.0\/\nAttribution: Raq.com, https:\/\/skills.raq.com\/skills\/absolute-risk-translation\nReferenced third-party materials retain their own terms.\n"},{"path":"examples\/worked-example.md","content":"# A small baseline\n\nExpress the result per 1,000.\n\n## Supplied material\n\nSame population and year. Baseline risk 2%. Risk ratio 0.75.\n\n## Worked answer\n\nFor 1,000 people like those in the comparison group over the same year, the baseline corresponds to 20 events. Applying the reported ratio gives an estimated 15 events, or 5 fewer per 1,000. No uncertainty interval was supplied.\n\n## Reasoning\n\nThe 25% relative reduction corresponds to five fewer events per thousand.\n"},{"path":"tests\/check.py","content":"\"\"\"Check a saved agent answer locally with Python 3 (standard library only).\"\"\"\nimport json\nimport math\nimport sys\nfrom pathlib import Path\n\n\ndef compare(expected, actual, path=\"$\", accepted=None):\n    if isinstance(expected, bool) or isinstance(actual, bool):\n        if expected is not actual:\n            yield path\n    elif isinstance(expected, (int, float)) and isinstance(actual, (int, float)):\n        if not math.isclose(expected, actual, rel_tol=0, abs_tol=1e-8):\n            yield path\n    elif isinstance(expected, dict) and isinstance(actual, dict):\n        for key in sorted(set(expected) | set(actual)):\n            if key not in expected or key not in actual:\n                yield f\"{path}.{key}\"\n            elif not any(\n                not list(compare(option, actual[key]))\n                for option in (accepted or {}).get(key, [])\n            ):\n                yield from compare(expected[key], actual[key], f\"{path}.{key}\")\n    elif isinstance(expected, list) and isinstance(actual, list):\n        if len(expected) != len(actual):\n            yield f\"{path} (length)\"\n        for i, (left, right) in enumerate(zip(expected, actual)):\n            yield from compare(left, right, f\"{path}[{i}]\")\n    elif type(expected) != type(actual) or expected != actual:\n        yield path\n\n\ndef main():\n    if len(sys.argv) != 3:\n        raise SystemExit(\"Usage: python3 check.py expected.json answer.json\")\n    try:\n        expected, actual = [json.loads(Path(p).read_text(encoding=\"utf-8\")) for p in sys.argv[1:]]\n        alternatives = Path(sys.argv[1]).with_name(\"accepted.json\")\n        accepted = json.loads(alternatives.read_text(encoding=\"utf-8\")) if alternatives.is_file() else {}\n    except (ValueError, OSError) as error:\n        raise SystemExit(str(error))\n    differences = list(compare(expected, actual, accepted=accepted))\n    if differences:\n        raise SystemExit(\"Different fields: \" + \", \".join(differences))\n    print(\"Pass\")\n\n\nif __name__ == \"__main__\":\n    main()\n"},{"path":"tests\/README.md","content":"Give your agent SKILL.md and one request.txt in a fresh session. Keep the expected answer aside. Save the reply as answer.json, then run this from the tests folder:\n\n    python3 check.py case-1\/expected.json answer.json\n\nEach case also has an explanation. Where accepted.json exists, the checker accepts the alternatives listed there.\n"},{"path":"tests\/case-1\/request.txt","content":"Express the result per 1,000.\nReturn only the JSON specified in SKILL.md for this test.\n\nSame population and year. Baseline risk 2%. Risk ratio 0.75.\n"},{"path":"tests\/case-1\/expected.json","content":"{\n    \"baseline_per_1000\": 20,\n    \"comparison_per_1000\": 15,\n    \"difference_per_1000\": -5\n}\n"},{"path":"tests\/case-1\/explanation.txt","content":"The 25% relative reduction corresponds to five fewer events per thousand.\n"},{"path":"tests\/case-2\/request.txt","content":"Translate only what is justified.\nReturn only the JSON specified in SKILL.md for this test.\n\nBaseline risk 10% over one season. The reported estimate is a hazard ratio of 0.8. No survival curves.\n"},{"path":"tests\/case-2\/expected.json","content":"{\n    \"baseline_per_1000\": 100,\n    \"comparison_per_1000\": null,\n    \"difference_per_1000\": null\n}\n"},{"path":"tests\/case-2\/explanation.txt","content":"A hazard ratio alone does not determine the event probability at one season.\n"},{"path":"tests\/case-3\/request.txt","content":"Express the estimated group risks per thousand.\nReturn only the JSON specified in SKILL.md for this test.\n\nCommunity survey, same population and year. Reference group probability 40%. The reported odds ratio for that outcome is 0.50, comparison relative to reference.\n"},{"path":"tests\/case-3\/expected.json","content":"{\n    \"baseline_per_1000\": 400,\n    \"comparison_per_1000\": 250,\n    \"difference_per_1000\": -150\n}\n"},{"path":"tests\/case-3\/explanation.txt","content":"The original odds of 2:3 become 1:3. One event per four people is 250 per thousand. Treating the odds ratio as a risk ratio would give 200.\n"}],"is_active":true,"is_approved":false}]}]}