Fits a loglinear model to three binary responses.
loglinb3(exchangeable = FALSE, zero = c("u12", "u13", "u23"))
An object of class "vglmff"
(see vglmff-class
).
The object is used by modelling functions
such as vglm
,
rrvglm
and vgam
.
When fitted, the fitted.values
slot of the object
contains the eight joint probabilities, labelled as
Logical.
If TRUE
, the three marginal probabilities are
constrained to be equal.
Which linear/additive predictors are modelled as
intercept-only?
A NULL
means none.
See CommonVGAMffArguments
for further
information.
Thomas W. Yee
The model is
The linear/additive predictors are
Yee, T. W. and Wild, C. J. (2001). Discussion to: ``Smoothing spline ANOVA for multivariate Bernoulli observations, with application to ophthalmology data (with discussion)'' by Gao, F., Wahba, G., Klein, R., Klein, B. Journal of the American Statistical Association, 96, 127--160.
McCullagh, P. and Nelder, J. A. (1989). Generalized Linear Models, 2nd ed. London: Chapman & Hall.
loglinb2
,
binom2.or
,
hunua
.
lfit <- vglm(cbind(cyadea, beitaw, kniexc) ~ altitude, loglinb3,
data = hunua, trace = TRUE)
coef(lfit, matrix = TRUE)
head(fitted(lfit))
summary(lfit)
Run the code above in your browser using DataLab