Yards per attempt = Total yards passing / Number of pass attempts
It's one of the 4 components in the pass efficiency formula.
Pass efficiency = (100 * Completions / Attempts) + (8.4 * Yards / Attempts) + (330 * TDs / Attempts) - (200 * INTs / Attempts)