Learn R Programming

SCGLR (version 1.1)

oneComponent: Function that calculates the current scglr-component

Description

Function that calculates the current scglr-component

Usage

oneComponent(X, Y, AX, family, size = NULL,
    offset = NULL, ds, crit)

Arguments

X
a matrix (n*p) containing covariates standardized through M^(-1/2)
Y
a matrix (n*q) containing dependent variables
AX
a matrix containing additional covariates
family
a vector of charater of length q specifying the distributions of the responses. Bernoulli, binomial, Poisson and gaussian are allowed.
size
specifies the numbers of trials of the binomial responses. A (n*qb) matrix is expected for qb binomial variables.
offset
used for the poisson dependent variables. A vector or a matrix of size: number of observations * number of Poisson dependent variables is expected
ds
an integer specifying the degree to which structural strength in X is taken into account when calculating the component
crit
a list of maxit and tol, default is 50 and 10e-6. If responses are bernoulli variables only, tol should generally be increased.

Value

  • the unit vector of loadings associated with the current component, i.e. the coefficients of the regressors in the linear combination giving each component