Secondary Attack Rate Calculation

Secondary Attack Rate Calculator .sar-calc-wrapper { max-width: 800px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.6; color: #333; } .sar-calculator { background-color: #f8f9fa; border: 1px solid #e9ecef; border-radius: 8px; padding: 30px; margin-bottom: 40px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); } .sar-calculator h3 { margin-top: 0; color: #2c3e50; text-align: center; margin-bottom: 25px; } .form-group { margin-bottom: 20px; } .form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #495057; } .form-group input { width: 100%; padding: 12px; border: 1px solid #ced4da; border-radius: 4px; font-size: 16px; box-sizing: border-box; } .form-group .help-text { font-size: 12px; color: #6c757d; margin-top: 5px; } .calculate-btn { width: 100%; background-color: #2c3e50; color: white; border: none; padding: 15px; font-size: 18px; font-weight: bold; border-radius: 4px; cursor: pointer; transition: background-color 0.2s; } .calculate-btn:hover { background-color: #1a252f; } #sar-result { margin-top: 25px; padding: 20px; background-color: #ffffff; border-left: 5px solid #28a745; border-radius: 4px; display: none; box-shadow: 0 2px 4px rgba(0,0,0,0.1); } .result-value { font-size: 32px; font-weight: bold; color: #28a745; margin-bottom: 10px; } .result-label { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: #6c757d; } .error-msg { color: #dc3545; font-weight: bold; margin-top: 10px; display: none; } .article-content h2 { color: #2c3e50; margin-top: 35px; border-bottom: 2px solid #eee; padding-bottom: 10px; } .article-content p { margin-bottom: 15px; } .article-content ul { margin-bottom: 20px; } .article-content li { margin-bottom: 8px; } .example-box { background-color: #e8f4f8; padding: 20px; border-radius: 6px; border-left: 4px solid #17a2b8; margin: 20px 0; }

Secondary Attack Rate (SAR) Calculator

The total number of people exposed to the primary case (excluding the primary case).
Number of contacts who are vaccinated or previously infected (not susceptible).
The number of new infections arising among the susceptible contacts.
Secondary Attack Rate
0.00%
function calculateSAR() { var totalContactsInput = document.getElementById('totalContacts'); var immuneContactsInput = document.getElementById('immuneContacts'); var secondaryCasesInput = document.getElementById('secondaryCases'); var resultDiv = document.getElementById('sar-result'); var sarValueDisplay = document.getElementById('sar-value'); var breakdownDisplay = document.getElementById('sar-breakdown'); var errorDiv = document.getElementById('error-message'); // Reset display resultDiv.style.display = 'none'; errorDiv.style.display = 'none'; // Get values var total = parseInt(totalContactsInput.value); var immune = parseInt(immuneContactsInput.value); var cases = parseInt(secondaryCasesInput.value); // Validation if (isNaN(total) || isNaN(cases)) { errorDiv.innerText = "Please enter valid numbers for Total Contacts and New Cases."; errorDiv.style.display = 'block'; return; } if (isNaN(immune)) { immune = 0; } if (total < 0 || immune < 0 || cases total) { errorDiv.innerText = "Immune contacts cannot exceed total exposed contacts."; errorDiv.style.display = 'block'; return; } var susceptible = total – immune; if (susceptible === 0) { errorDiv.innerText = "There are no susceptible contacts (everyone is immune), so SAR cannot be calculated (division by zero)."; errorDiv.style.display = 'block'; return; } if (cases > susceptible) { errorDiv.innerText = "New cases cannot exceed the number of susceptible contacts."; errorDiv.style.display = 'block'; return; } // Calculation var sar = (cases / susceptible) * 100; // Output sarValueDisplay.innerText = sar.toFixed(2) + "%"; breakdownDisplay.innerHTML = "Calculation Breakdown:" + cases + " (New Cases) ÷ " + susceptible + " (Susceptible Contacts) × 100″; resultDiv.style.display = 'block'; }

Understanding Secondary Attack Rate (SAR)

In epidemiology, the Secondary Attack Rate (SAR) is a critical metric used to measure the transmissibility of an infectious disease. Unlike the basic reproduction number ($R_0$), which estimates spread in a large, fully susceptible population, SAR focuses on the spread of disease within a closed group, such as a household, dormitory, or workplace, after a primary case has been introduced.

Calculating the SAR helps public health officials determine how contagious a pathogen is in close-contact settings and allows for the evaluation of intervention strategies like isolation, quarantine, and vaccination.

How is Secondary Attack Rate Calculated?

The formula for calculating SAR is relatively straightforward but requires precise data regarding the group being studied. The rate is expressed as a percentage.

Formula:
SAR (%) = ( Number of New Cases / Number of Susceptible Contacts ) × 100

To use this formula correctly, you must distinguish between "Total Contacts" and "Susceptible Contacts":

  • Total Exposed Contacts: Everyone in the closed group excluding the primary case (patient zero).
  • Immune Contacts: Individuals who cannot get the disease due to prior infection or vaccination.
  • Susceptible Contacts: Calculated by subtracting Immune Contacts from Total Contacts. This is your denominator.
  • New Secondary Cases: The number of susceptible people who became infected. This is your numerator.

Realistic Calculation Example

Let's look at a realistic scenario involving a household outbreak of influenza:

Imagine a household of 6 people. One person contracts the flu at work and brings it home (the Primary Case). This leaves 5 remaining people in the house (Total Exposed Contacts).

Out of these 5 people:

  • 1 person had a flu shot and is considered immune.
  • 4 people are unvaccinated and susceptible.

Over the next week, 2 of the unvaccinated family members get sick.

The Calculation:

  • Susceptible Contacts = 5 (Total) – 1 (Immune) = 4
  • New Cases = 2
  • SAR = (2 ÷ 4) × 100 = 50%

In this example, the Secondary Attack Rate is 50%, indicating a high level of transmissibility within the household.

Why is SAR Important?

While $R_0$ gives a broad view of a pandemic, SAR provides a microscopic view of transmission efficiency. It is particularly useful for:

  1. Comparing Variants: Determining if a new strain of a virus spreads more easily in households than previous strains.
  2. Vaccine Efficacy: Comparing the SAR among vaccinated groups versus unvaccinated groups.
  3. Policy Making: Deciding whether home quarantine is safe or if infected individuals should be isolated in dedicated facilities.

Factors Influencing Secondary Attack Rate

Several variables can increase or decrease the SAR in any given outbreak:

  • Duration of Exposure: Longer contact time with the primary case increases risk.
  • Environmental Factors: Poor ventilation in a home can increase SAR for airborne diseases.
  • Viral Load: A primary case with a higher viral load may be more infectious.
  • Hygiene Measures: Mask-wearing and hand-washing within the home can significantly lower the SAR.

Leave a Comment