btReg.fit is a basic fitting function for simple Bradley-Terry models.btReg.fit(y, weights = NULL, type = c("loglin", "logit"), ref = NULL,
undecided = NULL, position = NULL, start = NULL, vcov = TRUE, estfun = TRUE,
...)glm.fit.btReg.fit returns an S3 object of class "btReg",
i.e., a list with components as follows.btReg.fit 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 btReg.fit returns an object of class "btReg" for which
several basic methods are available, including print, plot,
summary, coef, vcov, logLik, and worth.PCModel.fit, RSModel.fit, RaschModel.fit## data
data("GermanParties2009", package = "psychotools")
## Bradley-Terry model
bt <- btReg.fit(GermanParties2009$preference)
summary(bt)
plot(bt)Run the code above in your browser using DataLab