Learn R Programming

MLCIRTwithin (version 1.0)

est_multi_glob_gen: Fit marginal regression models for categorical responses

Description

It estimates marginal regression models to datasets consisting of a categorical response and one or more covariates by a Fisher-scoring algorithm; this is an internal function that also works with response variables having a different number of response categories.

Usage

est_multi_glob_gen(Y, X, model, ind = 1:nrow(Y), be = NULL, Dis = NULL, dis = NULL, 
                          disp=FALSE, only_sc = FALSE, Int = NULL, der_single = FALSE,
                          maxit = 10)

Arguments

Y
matrix of response configurations
X
array of all distinct covariate configurations
model
type of logit (g = global, l = local, m = multinomial)
ind
vector to link responses to covariates
be
initial vector of regression coefficients
Dis
matrix for inequality constraints on be
dis
vector for inequality constraints on be
disp
to display partial output
only_sc
to exit giving only the score
Int
matrix of the fixed intercepts
der_single
to require single derivatives
maxit
maximum number of iterations

Value

  • beestimated vector of regression coefficients
  • lklog-likelihood at convergence
  • Pdismatrix of the probabilities for each distinct covariate configuration
  • Pmatrix of the probabilities for each covariate configuration
  • Scsingle derivative (if der_single=TRUE)
  • scscore

References

Colombi, R. and Forcina, A. (2001), Marginal regression models for the analysis of positive association of ordinal response variables, Biometrika, 88, 1007-1019.

Glonek, G. F. V. and McCullagh, P. (1995), Multivariate logistic models, Journal of the Royal Statistical Society, Series B, 57, 533-546.