pafa {mlbstats} | R Documentation |
Calculates park factor
Description
Computes the runs a team scores at home versus away (it is often used in other metrics, e.g., adjusted era (ERA+) for pitchers; see "aera")
Usage
pafa(home_rs, home_ra, home_r, road_rs, road_ra, road_r)
Arguments
home_rs |
Number of pitcher's team runs scored at home park |
home_ra |
Number of pitcher's team runs allowed at home park |
home_r |
Total number of runs scored at home park |
road_rs |
Number of pitcher's team runs scored at away park |
road_ra |
Number of pitcher's team runs allowed at away park |
road_r |
Total number of runs scored at away park |
Value
pafa
Examples
pafa(5, 6, 11, 4, 8, 12) # for a pair of games (one home, one away)
[Package mlbstats version 0.1.0 Index]