inst/snippet/nfl-post2.R

require(faraway)           # for ilogit(), the inverse logit
nfl$pwinner <- ilogit(nfl$winnerRating - nfl$loserRating)
# how big an upset was the Super Bowl?
nfl[nrow(nfl),]

Try the fastR package in your browser

Any scripts or data that you put into this service are public.

fastR documentation built on May 2, 2019, 5:53 p.m.