data
), (ii) a model formula (formula
), (iii) a cluster identifier variable (id
) and (iv) an optional vector that identifies the order of the observations within each cluster (repeated
).
Options for the marginal model in the function ordLORgee include cumulative link models or an adjacent categories logit model. A marginal baseline category logit model is offered in the function nomLORgee. For the form of the linear predictor in these models, see the Details
sections in nomLORgee and ordLORgee.
The association structure among the correlated multinomial responses is expressed via marginalized local odds ratios (Touloumis et al., 2013). The estimating procedure for the local odds ratios can be summarized as follows: For each level pair of the repeated
variable, the available responses are aggregated across clusters to form a square marginalized contingency table.
Treating these tables as independent, an RC-G(1) type model (Becker and Clogg, 1989) is fitted in order to estimate the marginalized local odds ratios. The LORstr
argument determines the form of the marginalized local odds ratios structure. Since the general RC-G(1) model is closely related to the family of association models (Goodman, 1985), one can instead fit an
association model to each of the marginalized contingency tables by setting LORem="2way"
.
If the underlying association pattern does not change dramatically across the level pairs of repeated
then parsimonious marginalized local odds ratios should sufficiently approximate the true underlying association structure. To assess the underlying association structure, one might use the utility function intrinsic.pars.
Instead of estimating the local odds ratios structure, a user-defined structure can be provided by setting LORstr=
"fixed
". In this case, the utility function matrixLOR is useful in constructing the required LORterm
argument.
The function waldts provides a goodness-of-fit test between two nested GEE models based on a Wald test statistic.data(arthritis)
fitord <- ordLORgee(y~factor(time)+factor(trt)+factor(baseline), data=arthritis,
id=id, repeated=time)
summary(fitord)
data(housing)
fitnom <- nomLORgee(y~factor(time)*sec, data=housing, id=id, repeated=time)
summary(fitnom)
Run the code above in your browser using DataLab