The parameterized data frame (
pframe
)
pingpong
summarizes the data
from 3017 table tennis matches taken from eight tournaments as the rating of the winner, the rating
of the loser, the difference of their ratings, and the average of
their ratings.
This data frame contains the following columns:
winner - loser
.
(winner + loser)/2
.
s rating was higher than the loser
s divided by the number of matches, i.e., sum(winner > loser)/length(winner).
log(p/(1-p))/mean(D)
Mallows, Colin L. (1973) Some comments on Cp. Technometrics
Vol. 15, pp 661--667.
John M. Chambers and Trevor J. Hastie, (eds.) Statistical Models in S,
Wadsworth and Brooks, Pacific Grove, CA 1992, pg. 423.
lprob <- function(lp)log(1 + exp(lp)) - lp fit.alpha <- ms(formula = ~ lprob(D * alpha), data = pingpong)