
Estimate Overs Remaining in Current Innings (Test)
Source:R/score_projection_test_match.R
estimate_test_innings_overs_remaining.RdFor Test matches, estimates how many overs might be bowled in the current innings based on typical innings lengths and declarations. This is inherently uncertain and uses heuristics.
Usage
estimate_test_innings_overs_remaining(
wickets_fallen,
current_score,
overs_bowled,
innings_number = 1,
lead = 0,
match_overs_remaining = 270
)Arguments
- wickets_fallen
Integer. Wickets lost so far in innings.
- current_score
Integer. Runs scored in innings.
- overs_bowled
Numeric. Overs bowled in innings.
- innings_number
Integer. Which innings (1-4).
- lead
Integer. Run lead/deficit (positive = batting team ahead).
- match_overs_remaining
Numeric. Overs remaining in match.
Examples
# First innings, early in the match
estimate_test_innings_overs_remaining(
wickets_fallen = 2, current_score = 85,
overs_bowled = 30, innings_number = 1
)
#> [1] 90
# Third innings with large lead (likely declaration)
estimate_test_innings_overs_remaining(
wickets_fallen = 3, current_score = 350,
overs_bowled = 80, innings_number = 3, lead = 320
)
#> [1] 0