Learn R Programming

SCGLR (version 1.1)

multivariateGlm.fit: Multivariate generalized linear regression

Description

multivariateGlm is used to fit multivariate generalized linear models specified by a symbolic formula together with the distributions of the responses. This function performs a simple GLM fit for each dependent variable with the associated distribution.

Usage

multivariateGlm.fit(Y, comp, family, offset, size)

Arguments

Y
matrix of dependent variables
comp
reduced scglr components obtained from the kComponents function
family
a vector of character giving the family distribution of each response
offset
used for the poisson dependent variables. A vector or a matrix of size: number of observations * number of Poisson dependent variables is expected
size
a matrix giving the number of trials for each Binomial dependent variable ncol(size) must be equal to the number of Binomial variables

Value

  • the list, each item of which is the glm object associated with each response