btmodel is a basic fitting function for simple Bradley-Terry models.
btmodel(y, weights = NULL, type = c("loglin", "logit"), ref = NULL, undecided = NULL, position = NULL, start = NULL, vcov = TRUE, estfun = FALSE, ...)glm.fit.btmodel returns an S3 object of class "btmodel",
i.e., a list with components as follows.
btmodel provides a basic fitting function for Bradley-Terry models,
intended as a building block for fitting Bradley-Terry trees and
Bradley-Terry mixtures in the psychotree package, respectively. While
btmodel is intended for individual paired-comparison data, the
eba package provides functions for aggregate data.
btmodel returns an object of class "btmodel" for which
several basic methods are available, including print, plot,
summary, coef, vcov, logLik, estfun
and worth.
pcmodel, rsmodel,
raschmodel, the eba packageo <- options(digits = 4)
## data
data("GermanParties2009", package = "psychotools")
## Bradley-Terry model
bt <- btmodel(GermanParties2009$preference)
summary(bt)
plot(bt)
options(digits = o$digits)
Run the code above in your browser using DataLab