pub fn response_rate_percent(
responses_received: f64,
invitations_sent: f64,
) -> Option<f64>Expand description
Survey response rate as a percentage: responses received / invitations sent x 100.
Treat this as a diagnostic signal in its own right (chapter 3.7): a declining rate often indicates eroding trust in the survey process.
§Arguments
responses_received— count of survey responses received.invitations_sent— count of survey invitations sent.
§Returns
Some(percentage), or None when invitations_sent is zero (rate
undefined).
§Examples
use software_engineering::developer_experience_metrics::response_rate_percent;
assert_eq!(response_rate_percent(72.0, 100.0), Some(72.0));
assert_eq!(response_rate_percent(1.0, 0.0), None);