binom2.rho(lrho = "rhobit", erho=list(), imu1 = NULL, imu2 = NULL,
init.rho = NULL, zero = 3, exchangeable = FALSE, nsimEIM=NULL)Links for more choices.lrho link.
See earg in Links for general information.NULL means none.
Numerically, the $\rho$ parameter is easiest modelled as
an intercept only, hence the default.TRUE, the two marginal probabilities are constrained to
be equal.CommonVGAMffArguments for more information.
A value of at least 100 is recommended;
the larger the value the better."vglmff" (see vglmff-class).
The object is used by modelling functions such as vglm,
and vgam. When fitted, the fitted.values slot of the object contains the
four joint probabilities, labelled as
$(Y_1,Y_2)$ = (0,0), (0,1), (1,0), (1,1), respectively.
pnorm)
with correlation parameter $\rho$. The bivariate probit model should not be confused with a bivariate
logit model with a probit link (see binom2.or).
The latter uses the odds ratio to quantify the association. Actually,
the bivariate logit model is recommended over the bivariate probit
model because the odds ratio is a more natural way of measuring the
association between two binary responses.
Documentation accompanying the
rbinom2.rho,
binom2.or,
loglinb2,
coalminers,
binomialff,
rhobit,
fisherz.coalminers = transform(coalminers, Age = (age - 42) / 5)
fit = vglm(cbind(nBnW,nBW,BnW,BW) ~ Age, binom2.rho, coalminers, trace=TRUE)
summary(fit)
coef(fit, matrix=TRUE)Run the code above in your browser using DataLab