Description Usage Arguments Details Value Author(s) References See Also Examples
wSB is the estimated number of runs a player contributes by stealing bases as compared to the average player.
1 |
year |
Season |
SB |
Stolen Bases |
CS |
Caught Stealing |
lgwSB |
League wSB |
single |
Singles |
bb |
Walks |
hbp |
Hit By Pitches |
ibb |
Intentional Walks |
wSB is useful because it attaches a value to a player's SB count
Returns a value equal to (SB * runSB) + (CS * runCS) - (lgwSB * (single + bb + hbp - ibb))
Peter Xenopoulos
http://www.fangraphs.com/library/offense/wsb/
lgwSB
1 2 3 4 5 6 7 8 9 10 | ## The function is currently defined as
function (year, SB, CS, lgwSB, single, bb, hbp, ibb)
{
runSB <- linearWeights$runSB[which(linearWeights$Season ==
year)]
runCS <- linearWeights$runCS[which(linearWeights$Season ==
year)]
wsb <- (SB * runSB) + (CS * runCS) - (lgwSB * (single + bb +
hbp - ibb))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.