btReg {psychotree} | R Documentation |
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.
btReg(type = "loglin", ref = NULL, undecided = NULL, position = NULL) btReg.fit(y, weights = NULL, type = c("loglin", "logit"), ref = NULL, undecided = NULL, position = NULL, ...)
y |
paircomp object with the response. |
weights |
an optional vector of weights, interpreted as case weights (integer only). |
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? |
... |
further arguments passed to functions. |
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.
An object of class "StatModel"
that fits Bradley-Terry models
with the specified arguments.