View source: R/intrinsic.pars.R
intrinsic.pars | R Documentation |
Utility function to assess the underlying association pattern.
intrinsic.pars(y = y, data = parent.frame(), id = id, repeated = NULL,
rscale = "ordinal")
y |
a vector that identifies the response vector of the desired marginal model. |
data |
an optional data frame containing the variables provided in
|
id |
a vector that identifies the clusters. |
repeated |
an optional vector that identifies the order of observations within each cluster. |
rscale |
a character string that indicates the nature of the response
scale. Options include " |
Simulation studies in Touloumis et al. (2013) suggested that if the range of the intrinsic parameter estimates is small then simple local odds ratios structures should adequately approximate the association pattern. Otherwise more complicated structures should be employed.
The intrinsic parameters are estimated under the heterogeneous linear-by-linear association model (Agresti, 2013) for ordinal response categories and under the RC-G(1) model (Becker and Clogg, 1989) with homogeneous score parameters for nominal response categories.
A detailed description of the arguments id
and repeated
can be
found in the Details section of nomLORgee or ordLORgee.
Returns a numerical vector with the estimated intrinsic parameters.
Anestis Touloumis
Agresti, A. (2013) Categorical Data Analysis. New York: John Wiley and Sons, Inc., 3rd Edition.
Becker, M. and Clogg, C. (1989) Analysis of sets of two-way contingency tables using association models. Journal of the American Statistical Association 84, 142–151.
Touloumis, A., Agresti, A. and Kateri, M. (2013) GEE for multinomial responses using a local odds ratios parameterization. Biometrics 69, 633–640.
nomLORgee and ordLORgee.
data(arthritis)
intrinsic.pars(y, arthritis, id, time, rscale = "ordinal")
## The intrinsic parameters do not vary much. The 'uniform' local odds ratios
## structure might be a good approximation for the association pattern.
set.seed(1)
data(housing)
intrinsic.pars(y, housing, id, time, rscale = "nominal")
## The intrinsic parameters vary. The 'RC' local odds ratios structure
## might be a good approximation for the association pattern.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.