as.linodds {ohenery} | R Documentation |
An object for modeling linear odds.
Description
A model for odds linear in some feature.
Usage
as.linodds(object, formula, beta)
## S3 method for class 'linodds'
predict(object, newdata, type = c("eta", "mu",
"erank"), na.action = na.pass, group = NULL, ...)
## S3 method for class 'linodds'
coef(object, ...)
Arguments
object |
some list-like object. |
formula |
an object of class |
beta |
the fit coefficients. |
newdata |
a |
type |
indicates which prediction should be returned:
|
na.action |
How to deal with missing values in |
group |
the string name of the group variable in the data, or a bare character with the group name. The group indices need not be integers, but that is more efficient. They need not be sorted. |
... |
other arguments. |
Details
An object which holds a formula, some fit coefficients
which fit in that formula to generate odds
in odds space.
The odds can then be converted, via
predict.linodds
to probabilities,
or to expected ranks under the Harville model.
Both harsm
and hensm
return
objects of class linodds
.
We think of linear odds as
,
for independent variables
. The odds,
are converted to probabilities,
via
where the constant
is chosen so the
for a given matching
sum to one.
Author(s)
Steven E. Pav shabbychef@gmail.com