{ } Raw JSON

bundles / scipy 1.18.0 / scipy / stats / _relative_risk / RelativeRiskResult

class

scipy.stats._relative_risk:RelativeRiskResult

source: /scipy/stats/_relative_risk.py:19

Signature

class RelativeRiskResult(relative_risk: float, exposed_cases: int, exposed_total: int, control_cases: int, control_total: int) → None

Members

Summary

Result of scipy.stats.contingency.relative_risk.

Attributes

relative_risk : float

This is

(exposed_cases/exposed_total) / (control_cases/control_total)
exposed_cases : int

The number of "cases" (i.e. occurrence of disease or other event of interest) among the sample of "exposed" individuals.

exposed_total : int

The total number of "exposed" individuals in the sample.

control_cases : int

The number of "cases" among the sample of "control" or non-exposed individuals.

control_total : int

The total number of "control" individuals in the sample.

Methods

confidence_interval

Compute the confidence interval for the relative risk estimate.

Aliases

  • scipy.stats._relative_risk.RelativeRiskResult