scipy.stats._result_classes.RelativeRiskResult#

class scipy.stats._result_classes.RelativeRiskResult(relative_risk, exposed_cases, exposed_total, control_cases, control_total)[source]#

Result of scipy.stats.contingency.relative_risk.

Attributes:
relative_riskfloat

This is:

(exposed_cases/exposed_total) / (control_cases/control_total)
exposed_casesint

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

exposed_totalint

The total number of “exposed” individuals in the sample.

control_casesint

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

control_totalint

The total number of “control” individuals in the sample.

Methods

confidence_interval([confidence_level])

Compute the confidence interval for the relative risk.