Learn R Programming

psychotree (version 0.13-0)

btReg: Model-Generating Function for Bradley-Terry Models

Description

btReg is a wrapper function that creates a "StatModel" object with certain fitting parameters passed on to btReg.fit for fitting simple Bradley-Terry models.

Usage

btReg(type = "loglin", ref = NULL, undecided = NULL, position = NULL)

Arguments

type
character. Should an auxiliary log-linear Poisson model or logistic binomial be employed for estimation? The latter is only available if not undecided effects are estimated.
ref
character or numeric. Which object parameter should be the reference category, i.e., constrained to zero?
undecided
logical. Should an undecided parameter be estimated?
position
logical. Should a position effect be estimated?

Value

  • An object of class "StatModel" that fits Bradley-Terry models with the specified arguments.

Details

btReg is the S4 interface for btReg.fit so that it can be used in mob. The user does not have to call this directly but can simply use the bttree interface.

See Also

bttree, btReg.fit